Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion itools/handlers/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def __init__(self, key=None, string=None, database=None, **kw):
try:
from itools.database.ro import ro_database
self.database = ro_database
except:
except Exception as e:
print e.message, e.args
if key:
print('Cannot attach handler {0} to a database'.format(key))
with open(key, 'r') as f:
Expand Down