Tools: fix exception in cut.py

This commit is contained in:
Arthur Golubtsov
2019-11-14 16:04:47 +03:00
parent 143574dc69
commit c091609df3

View File

@@ -12,7 +12,7 @@ def cut_file(filename, _from, _to, reverse = False):
try: try:
animation_file = open(filename) animation_file = open(filename)
except IOError: except IOError:
logging.error("File {} can't be opened".format(filepath)) logging.error("File {} can't be opened".format(filename))
else: else:
with animation_file: with animation_file:
csv_reader = csv.reader( csv_reader = csv.reader(