diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-30 03:27:41 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-30 11:33:45 -0800 |
commit | c5d8cf8eb6a6e84347b9379945f308f29a2fe5cb (patch) | |
tree | 306901036624b604e0d7d7c0e33c6d10ec39b713 /tools/benchmark.py | |
parent | d43a4be0d291d2cb1fb4f5a9353b509e87f849eb (diff) |
Use pylint.
Diffstat (limited to 'tools/benchmark.py')
-rwxr-xr-x | tools/benchmark.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py index 760bad100..fe71cc88e 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -1,7 +1,8 @@ #!/usr/bin/env python # Copyright 2018 the Deno authors. All rights reserved. MIT license. # Performs benchmark and append data to //website/data.json. -# If //website/data.json doesn't exist, this script tries to import it from gh-pages branch. +# If //website/data.json doesn't exist, this script tries to import it from +# gh-pages branch. # To view the results locally run ./tools/http_server.py and visit # http://localhost:4545/website @@ -49,7 +50,7 @@ def import_data_from_gh_pages(): "https://github.com/denoland/deno.git", "gh-pages" ]) shutil.copy(gh_pages_data_file, all_data_file) - except: + except ValueError: write_json(all_data_file, []) # writes empty json data |