if CONFIG.has_option('core', 'lastrev'):
lastrev = CONFIG.getint('core', 'lastrev')
- with open(g.path + '/svn/refs/remotes/git-svn/unhandled.log', 'r') as f:
- _do_parse_unhandled(f, lastrev=lastrev)
+ try:
+ with open(g.path + '/svn/refs/remotes/git-svn/unhandled.log', 'r') as f:
+ _do_parse_unhandled(f, lastrev=lastrev)
+ except IOError:
+ with open(g.path + '/svn/git-svn/unhandled.log', 'r') as f:
+ _do_parse_unhandled(f, lastrev=lastrev)
with open(FILES_PATH, 'wb') as f:
FILES.write(f)