aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/client.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-07 11:41:49 -0800
committerGitHub <noreply@github.com>2023-11-07 11:41:49 -0800
commit5129ad62392948a033ee988e4093d095f5005c77 (patch)
tree5df144f6970d7d015bce94cff4516a388b5cddab /src/wikiget/client.py
parentbc5d19c8150bf7960839243ceeb6f62a9df54e18 (diff)
parent7c2dadfa38ac08a060f2df987b7d0b7f2f0b5ad0 (diff)
downloadwikiget-5129ad62392948a033ee988e4093d095f5005c77.tar.gz
wikiget-5129ad62392948a033ee988e4093d095f5005c77.zip
Merge pull request #12 from clpo13/improve-tests
Improve tests and test coverage
Diffstat (limited to 'src/wikiget/client.py')
-rw-r--r--src/wikiget/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wikiget/client.py b/src/wikiget/client.py
index 6551142..69051a7 100644
--- a/src/wikiget/client.py
+++ b/src/wikiget/client.py
@@ -34,6 +34,7 @@ def connect_to_site(site_name: str, args: Namespace) -> Site:
try:
site = Site(site_name, path=args.path, clients_useragent=wikiget.USER_AGENT)
if args.username and args.password:
+ logger.info("Attempting to authenticate with credentials")
site.login(args.username, args.password)
except ConnectionError as e:
# usually this means there is no such site, or there's no network connection,