1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-08 05:58:43 +02:00

temporary workaround for cookie handling problem by Andreas

This commit is contained in:
2008-04-12 08:04:41 +00:00
parent 0835580d59
commit 6debf60892

View File

@@ -1384,11 +1384,12 @@ def http_request(method, url, headers={}, data=None, file=None):
else:
raise
fd = urllib2.urlopen(req, data=data)
if hasattr(conf.cookiejar, 'save'):
conf.cookiejar.save(ignore_discard=True)
# this handling is currently considered as temporary workaround, bug #378421
try:
fd = urllib2.urlopen(req, data=data)
finally:
if hasattr(conf.cookiejar, 'save'):
conf.cookiejar.save(ignore_discard=True)
if filefd: filefd.close()