mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-24 11:12:14 +01:00
- fixed creation of ~/.osc_cookiejar
A "PyCFunction_Type" like os.open takes no keyword arguments.
This commit is contained in:
parent
720c685868
commit
9034b27814
@ -571,9 +571,10 @@ def init_basicauth(config):
|
||||
cookiejar.load(ignore_discard=True)
|
||||
except IOError:
|
||||
try:
|
||||
fd = os.open(cookie_file, os.O_CREAT | os.O_WRONLY | os.O_TRUNC, mode=0o600)
|
||||
fd = os.open(cookie_file, os.O_CREAT | os.O_WRONLY | os.O_TRUNC, 0o600)
|
||||
os.close(fd)
|
||||
except:
|
||||
except IOError:
|
||||
# hmm is any good reason why we should catch the IOError?
|
||||
#print 'Unable to create cookiejar file: \'%s\'. Using RAM-based cookies.' % cookie_file
|
||||
cookiejar = CookieJar()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user