Explorar el Código

Fix old Python syntax.

INADA Naoki hace 11 años
padre
commit
025ca7b77a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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