Skip to content

Commit 5a651a6

Browse files
author
Artjoms Iskovs
committed
MDP-621 Log the exception type as well
1 parent 5b7140a commit 5a651a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arctic/arctic.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,12 @@ def get_library(self, library):
233233
except (OperationFailure, AutoReconnect), e:
234234
error = e
235235

236-
if error or not lib_type:
237-
raise LibraryNotFoundException("Library %s was not correctly initialized in %s.\nReason: %s" %
236+
if error:
237+
raise LibraryNotFoundException("Library %s was not correctly initialized in %s.\nReason: %r)" %
238238
(library, self, error))
239+
elif not lib_type:
240+
raise LibraryNotFoundException("Library %s was not correctly initialized in %s." %
241+
(library, self))
239242
elif lib_type not in LIBRARY_TYPES:
240243
raise LibraryNotFoundException("Couldn't load LibraryType '%s' for '%s' (has the class been registered?)" %
241244
(lib_type, library))

0 commit comments

Comments
 (0)