Changeset 65

Show
Ignore:
Timestamp:
12/27/06 23:16:30 (2 years ago)
Author:
akaihola
Message:

[djac] Sometimes the login page gives a 403 error instead of a 401. Now handles that as well.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • djac/trunk/tracaccess.py

    r54 r65  
    4848        except urllib2.HTTPError, e: 
    4949            print 'Login page returned', e 
    50             if e.code != 401: 
     50            if e.code not in (401, 403): 
    5151                raise 
    5252    return urllib2.urlopen(report_url)