Skip to content

Commit

Permalink
Fix AttributeError: 'Namespace' object has no attribute 'search' when…
Browse files Browse the repository at this point in the history
… no argument given (#343)
  • Loading branch information
darodi committed Aug 12, 2023
1 parent 9701e13 commit 3c11c66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions comic_dl/comic_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ def __init__(self, argv):
sys.exit()

if args.input is None:
if not str(args.search).strip():
print("I need an Input URL to download from.")
print("Run the script with --help to see more information.")
print("I need an Input URL to download from.")
print("Run the script with --help to see more information.")
else:
print_index = False
manual_cookie = None
Expand Down

0 comments on commit 3c11c66

Please sign in to comment.