From 2202d76d3a4e83071c0d1b7901de9b29bb4f3878 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 29 Dec 2021 11:47:17 +0100 Subject: [PATCH] black check --- cdoseaplay/play.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cdoseaplay/play.py b/cdoseaplay/play.py index 1d90854..500e24e 100755 --- a/cdoseaplay/play.py +++ b/cdoseaplay/play.py @@ -42,7 +42,6 @@ def main(): logging.basicConfig(level=logging.DEBUG, format=log_format) base = os.path.dirname(os.path.abspath(__file__)) os.chdir(base) - player = get_player(font=config.font, font_size=config.font_size) player.register_key_binding('q', q_binding) @@ -69,7 +68,7 @@ def main(): player.pause = True pause_next = False play_lights = False - elif player.path.decode().endswith('black.mp4'): + elif player.path and player.path.decode().endswith('black.mp4'): pause_next = True play_lights = False