Skip to content

Commit

Permalink
Merge pull request #6 from safurrier/check-init-libgen-client-on-stor…
Browse files Browse the repository at this point in the history
…e-open

Check if libgen client is initialized before opening store
  • Loading branch information
fallaciousreasoning authored Dec 22, 2020
2 parents eeb7990 + b398814 commit e807aab
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 e807aab

Please sign in to comment.