From 574d9328bf51c40877ffb9766b87f27a246e8dc2 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 11 Nov 2014 11:21:47 +0100 Subject: [PATCH 1/1] ... 3.2 ... --- zonemaker/zone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zonemaker/zone.py b/zonemaker/zone.py index 330c184..add2bde 100644 --- 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 -- 2.30.2