Update dolphin.py (#2717)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Zoë Prosvetova 2023-06-01 11:59:41 +02:00 committed by GitHub
parent 86a64487cb
commit 3a7203e32e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,11 +49,11 @@ class DolphinBubbleAnimation:
def load(self, animation_directory: str): def load(self, animation_directory: str):
if not os.path.isdir(animation_directory): if not os.path.isdir(animation_directory):
raise Exception(f"Animation folder doesn't exists: { animation_directory }") raise Exception(f"Animation folder doesn't exist: { animation_directory }")
meta_filename = os.path.join(animation_directory, "meta.txt") meta_filename = os.path.join(animation_directory, "meta.txt")
if not os.path.isfile(meta_filename): if not os.path.isfile(meta_filename):
raise Exception(f"Animation meta file doesn't exists: { meta_filename }") raise Exception(f"Animation meta file doesn't exist: { meta_filename }")
self.logger.info(f"Loading meta from {meta_filename}") self.logger.info(f"Loading meta from {meta_filename}")
file = FlipperFormatFile() file = FlipperFormatFile()