From 6d8c9dea5de69fc3a642f22037202e0260f466ea Mon Sep 17 00:00:00 2001 From: Albert Date: Tue, 14 Jul 2020 17:32:23 +0200 Subject: [PATCH] Make tests compatible with python 2.7 --- processGeoIpCsv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processGeoIpCsv.py b/processGeoIpCsv.py index 4eac3a14..0f459664 100644 --- a/processGeoIpCsv.py +++ b/processGeoIpCsv.py @@ -14,7 +14,7 @@ def removeOldData(): try: os.mkdir(CODE_DIR) os.remove(PARAMS_FILE) - except (FileExistsError, FileNotFoundError): + except (OSError): pass def jsonify(item):