Skip to content

Commit af8a0cb

Browse files
committed
change except syntax
1 parent 40ad8bb commit af8a0cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/default

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if not os.path.exists(assets):
1414
try:
1515
with tarfile.open("{}.tbz2".format(assets), "r:*") as tf:
1616
tf.extractall(media.mypath)
17-
except tarfile.ReadError, e:
17+
except tarfile.ReadError as e:
1818
assert 0, ("Failed to extract assets. Did you forget to"
1919
" initialize git lfs (see README.md)?")
2020

lib/metrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __exit__(self, type, value, tb):
8585
def next_frame(self):
8686
try:
8787
return self.reader(self.fd, self.width, self.height)
88-
except Exception, e:
88+
except Exception as e:
8989
e.args += tuple(["frame {}/{}".format(self.nreads, self.nframes)])
9090
raise
9191
finally:

0 commit comments

Comments
 (0)