diff --git a/src/bmaptool/TransRead.py b/src/bmaptool/TransRead.py index 194a18f..c35e033 100644 --- a/src/bmaptool/TransRead.py +++ b/src/bmaptool/TransRead.py @@ -607,7 +607,7 @@ def _print_warning(timeout): except netrc.NetrcParseError as e: _log.error(f"Error parsing line {e.lineno} of {e.filename}: {e.msg}") - if username and password: + if username and password and parsed_url.scheme in ("http", "https"): # Unfortunately, in order to handle URLs which contain username # and password (e.g., http://user:password@my.site.org), we need to # do few extra things.