Skip to content

Commit

Permalink
Merge pull request #25 from vaibhavsanap/main
Browse files Browse the repository at this point in the history
Improve module condition check in the code
  • Loading branch information
Haste171 committed Jun 6, 2023
2 parents 62e2e7d + 1e2418a commit 5f913d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def extensions(client: Client, directory: str):
if module not in "__init__.py" and module[-3:] == ".py"
]

if modules or modules == []:
print("Importing extensions:", len(modules), ", ".join(modules))
if modules:
print(f"Importing extensions: {len(modules)}, {', '.join(modules)}")
else:
print("Could not import any extensions!")

Expand Down

0 comments on commit 5f913d0

Please sign in to comment.