projects
/
zonemaker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add example zone
[zonemaker.git]
/
zonemaker
/
zone.py
diff --git
a/zonemaker/zone.py
b/zonemaker/zone.py
index 094c0f868eee8fe19c6dc1fa4f583dfc6b3326e6..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
FileNotFoundError:
+ except
(OSError, IOError): # FileNotFoundError has been added in Python 3.3
pass
# increment serial
cur_serial += 1