14
0
OBS User unknown
2008-02-21 00:59:28 +00:00
committed by Git OBS Bridge
parent 67d914d3a4
commit 4be2c5ac51
3 changed files with 38 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
--- 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)