We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b7140a commit 5a651a6Copy full SHA for 5a651a6
arctic/arctic.py
@@ -233,9 +233,12 @@ def get_library(self, library):
233
except (OperationFailure, AutoReconnect), e:
234
error = e
235
236
- if error or not lib_type:
237
- raise LibraryNotFoundException("Library %s was not correctly initialized in %s.\nReason: %s" %
+ if error:
+ raise LibraryNotFoundException("Library %s was not correctly initialized in %s.\nReason: %r)" %
238
(library, self, error))
239
+ elif not lib_type:
240
+ raise LibraryNotFoundException("Library %s was not correctly initialized in %s." %
241
+ (library, self))
242
elif lib_type not in LIBRARY_TYPES:
243
raise LibraryNotFoundException("Couldn't load LibraryType '%s' for '%s' (has the class been registered?)" %
244
(lib_type, library))
0 commit comments