|
@ -2190,6 +2190,8 @@ if __name__ == '__main__': |
|
|
else: |
|
|
else: |
|
|
try: |
|
|
try: |
|
|
jar = cookielib.MozillaCookieJar(opts.cookiefile) |
|
|
jar = cookielib.MozillaCookieJar(opts.cookiefile) |
|
|
|
|
|
if os.path.isfile(opts.cookiefile) and os.access(opts.cookiefile, os.R_OK): |
|
|
|
|
|
jar.load() |
|
|
except (IOError, OSError), err: |
|
|
except (IOError, OSError), err: |
|
|
sys.exit(u'ERROR: unable to open cookie file') |
|
|
sys.exit(u'ERROR: unable to open cookie file') |
|
|
|
|
|
|
|
|