Skip to content

Commit

Permalink
Merge pull request #1 from beanhedge/beanhedge-patch-1
Browse files Browse the repository at this point in the history
don't download if already running
  • Loading branch information
beanhedge authored Mar 9, 2021
2 parents 0ab98cd + ccd69f7 commit 60adb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibw/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, username: str, account: str, client_gateway_path: str = None,
).resolve()

# See if it exists.
if not self.client_portal_folder.exists():
if not self.client_portal_folder.exists() and not self._is_server_running:
print("The Client Portal Gateway doesn't exist. You need to download it before using the Library.")
print("Downloading the Client Portal file...")
self.client_portal_client.download_and_extract()
Expand Down

0 comments on commit 60adb00

Please sign in to comment.