--- urlgrabber/grabber.py +++ urlgrabber/grabber.py @@ -686,6 +686,9 @@ user_pass, host = host.split('@', 1) if ':' in user_pass: user, password = user_pass.split(':', 1) + else: + user = user_pass + password = '' except ValueError, e: raise URLGrabError(1, _('Bad URL: %s') % url) if DEBUG: DEBUG.info('adding HTTP auth: %s, %s', user, password)