aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/parse.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-10-17 14:00:14 -0700
committerCody Logan <cody@lokken.dev>2023-10-17 14:00:14 -0700
commit06335ba0176cabd84f5b548995f465ac1c09bc8e (patch)
tree1425c62c7371dd1c629a89b3c7a397e8e875268a /src/wikiget/parse.py
parent45a550899e0adf6958764d8a5133da4e21aa7fea (diff)
downloadwikiget-06335ba0176cabd84f5b548995f465ac1c09bc8e.tar.gz
wikiget-06335ba0176cabd84f5b548995f465ac1c09bc8e.zip
Clean up exception handling and error messages
Diffstat (limited to 'src/wikiget/parse.py')
-rw-r--r--src/wikiget/parse.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wikiget/parse.py b/src/wikiget/parse.py
index 09c0767..f5c221d 100644
--- a/src/wikiget/parse.py
+++ b/src/wikiget/parse.py
@@ -30,8 +30,9 @@ def get_dest(dl, args):
filename = url.path
site_name = url.netloc
if args.site is not wikiget.DEFAULT_SITE:
- # this will work even if the user specifies 'commons.wikimedia.org'
- logging.warning("target is a URL, ignoring site specified with --site")
+ # this will work even if the user specifies 'commons.wikimedia.org' since
+ # we're comparing objects instead of values (is not vs. !=)
+ logging.warning("Target is a URL, ignoring site specified with --site")
else:
filename = dl
site_name = args.site