Show More
@@ -159,7 +159,14 b' class FileNamespaceBackend(PickleSeriali' | |||||
159 |
|
159 | |||
160 | def __init__(self, arguments): |
|
160 | def __init__(self, arguments): | |
161 | arguments['lock_factory'] = CustomLockFactory |
|
161 | arguments['lock_factory'] = CustomLockFactory | |
162 | super(FileNamespaceBackend, self).__init__(arguments) |
|
162 | db_file = arguments.get('filename') | |
|
163 | ||||
|
164 | log.debug('initialing %s DB in %s', self.__class__.__name__, db_file) | |||
|
165 | try: | |||
|
166 | super(FileNamespaceBackend, self).__init__(arguments) | |||
|
167 | except Exception: | |||
|
168 | log.error('Failed to initialize db at: %s', db_file) | |||
|
169 | raise | |||
163 |
|
170 | |||
164 | def __repr__(self): |
|
171 | def __repr__(self): | |
165 | return '{} `{}`'.format(self.__class__, self.filename) |
|
172 | return '{} `{}`'.format(self.__class__, self.filename) |
General Comments 0
You need to be logged in to leave comments.
Login now