From 0b290dc24330492782318b12cb59acd29d6b0735 Mon Sep 17 00:00:00 2001 From: Srdjan Date: Fri, 24 Dec 2021 17:55:56 +1000 Subject: [PATCH] play(): WindowsError -> OSError --- resources/lib/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/play.py b/resources/lib/play.py index 368d9b7..f90d89a 100644 --- a/resources/lib/play.py +++ b/resources/lib/play.py @@ -86,7 +86,7 @@ def play(params): if os.path.isfile(caption_file): try: os.remove(caption_file) - except WindowsError as e: + except OSError as e: utils.log('Subtitles not available for this ' 'program: {0}'.format(e))