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))