Skip to content

Commit

Permalink
catch OSError when --noresume but restored db doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed Jun 22, 2014
1 parent e281268 commit d0b251b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ def main(argv):
if options.noresume:
try:
os.remove(resumedb)
except OSError:
pass
except IOError:
pass
sqlcur.execute('ATTACH ? as resume', (resumedb,))
Expand Down Expand Up @@ -929,6 +931,8 @@ def main(argv):
if options.noresume:
try:
os.remove(resumedb)
except OSError:
pass
except IOError:
pass
sqlcur.execute('ATTACH ? as mbox_resume', (resumedb,))
Expand Down Expand Up @@ -1056,6 +1060,8 @@ def main(argv):
if options.noresume:
try:
os.remove(resumedb)
except OSError:
pass
except IOError:
pass
sqlcur.execute('ATTACH ? as resume', (resumedb,))
Expand Down

0 comments on commit d0b251b

Please sign in to comment.