Skip to content

Commit

Permalink
clearer use of config_valid in main
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancollingwood authored Jul 24, 2023
1 parent b57a689 commit 392f328
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def execute(self):
self.logger.info("COMPLETE EXECUTE")



if __name__ == "__main__":
parser = argparse.ArgumentParser("Diablo 4 Armory Fetcher")
parser.add_argument("account_id", help="Account ID to fetch", type=str, default=None, nargs='?')
Expand All @@ -220,7 +219,5 @@ def execute(self):
account_ids = [args.account_id]

fetcher = Fetcher(account_ids = account_ids)
if not fetcher.config_valid:
return

fetcher.execute()
if fetcher.config_valid:
fetcher.execute()

0 comments on commit 392f328

Please sign in to comment.