From: Ralf Jung Date: Tue, 11 Nov 2014 10:20:39 +0000 (+0100) Subject: more python 3.2 fixes X-Git-Url: https://git.ralfj.de/zonemaker.git/commitdiff_plain/62c56a547f92ff543b08533875a2640aef0d7e2e?ds=inline more python 3.2 fixes --- diff --git a/zonemaker/zone.py b/zonemaker/zone.py index 094c0f8..330c184 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 FileNotFoundError: + except OSError: # FileNotFoundError has been added in Python 3.3 pass # increment serial cur_serial += 1