Pārlūkot izejas kodu

Fix old Python syntax.

INADA Naoki 11 gadi atpakaļ
vecāks
revīzija
025ca7b77a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      toolset/benchmark/benchmarker.py

+ 1 - 1
toolset/benchmark/benchmarker.py

@@ -833,7 +833,7 @@ class Benchmarker:
     try:
       with open(os.path.join(self.latest_results_directory, 'results.json')) as f:
         results = json.load(f)
-    except ValueError, IOError:
+    except (ValueError, IOError):
       pass
     else:
       self.results = results