| Index: my_activity.py
|
| diff --git a/my_activity.py b/my_activity.py
|
| index 09dc0fb3ca7701ee47219dc37356d67c3e924d07..d8a093a81fcfa980a926d83c5c6405f51260562d 100755
|
| --- a/my_activity.py
|
| +++ b/my_activity.py
|
| @@ -277,15 +277,17 @@ class MyActivity(object):
|
| # authenticate to.
|
| def check_cookies(self):
|
| cookie_file = os.path.expanduser('~/.codereview_upload_cookies')
|
| - cookie_jar = cookielib.MozillaCookieJar(cookie_file)
|
| if not os.path.exists(cookie_file):
|
| - exit(1)
|
| -
|
| - try:
|
| - cookie_jar.load()
|
| - print 'Found cookie file: %s' % cookie_file
|
| - except (cookielib.LoadError, IOError):
|
| - exit(1)
|
| + print 'No Rietveld cookie file found.'
|
| + cookie_jar = []
|
| + else:
|
| + cookie_jar = cookielib.MozillaCookieJar(cookie_file)
|
| + try:
|
| + cookie_jar.load()
|
| + print 'Found cookie file: %s' % cookie_file
|
| + except (cookielib.LoadError, IOError):
|
| + print 'Error loading Rietveld cookie file: %s' % cookie_file
|
| + cookie_jar = []
|
|
|
| filtered_instances = []
|
|
|
|
|