projects
/
zonemaker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
62c56a5
)
... 3.2 ...
author
Ralf Jung
<post@ralfj.de>
Tue, 11 Nov 2014 10:21:47 +0000
(11:21 +0100)
committer
Ralf Jung
<post@ralfj.de>
Tue, 11 Nov 2014 10:21:47 +0000
(11:21 +0100)
zonemaker/zone.py
patch
|
blob
|
history
diff --git
a/zonemaker/zone.py
b/zonemaker/zone.py
index 330c1842d3978440f1bf54127dc482d7062de472..add2bde8c4df333b6f17baa70318d53435df096a 100644
(file)
--- a/
zonemaker/zone.py
+++ b/
zonemaker/zone.py
@@
-258,7
+258,7
@@
class Zone:
try:
with open(self._serialfile) as f:
cur_serial = int(f.read())
- except
OSError
: # FileNotFoundError has been added in Python 3.3
+ except
(OSError, IOError)
: # FileNotFoundError has been added in Python 3.3
pass
# increment serial
cur_serial += 1