Skip to content

Commit

Permalink
Check if libgen client is initialized before opening store
Browse files Browse the repository at this point in the history
  • Loading branch information
safurrier committed Dec 21, 2020
1 parent eeb7990 commit b398814
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def open(self, parent=None, detail_item=None, external=False):
debug_print = partial(module_debug_print, 'LibgenStore:open:')
debug_print('locals() = ', locals())

if not hasattr(self, 'libgen'):
self.genesis()

detail_url = (
self.libgen.get_detail_url(detail_item)
if detail_item
Expand Down

0 comments on commit b398814

Please sign in to comment.