Update animation.py to handle wierd newlines

This commit is contained in:
Artem Vasiunik
2021-11-30 19:44:53 +03:00
committed by GitHub
parent 1d830e46ed
commit 41310621dd

View File

@@ -169,7 +169,7 @@ class Animation(object):
self.set_state("Bad animation delay from config 'ANIMATION' section", log_error=True)
return
try:
animation_file = open(self.filepath)
animation_file = open(self.filepath, 'rU')
except IOError:
self.set_state("File {} can't be opened".format(self.filepath), log_error=True)
else: