Skip to content

Commit

Permalink
Merge pull request #23 from beanhedge/master
Browse files Browse the repository at this point in the history
don't download if already running
  • Loading branch information
areed1192 authored Mar 13, 2021
2 parents 66c01dc + 60adb00 commit 4321388
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 4321388

Please sign in to comment.