Skip to content

Commit

Permalink
Define ModuleNotFoundError for Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjyco committed Nov 27, 2024
1 parent 1003196 commit 3f70cda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mocp_cli/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
from collections import OrderedDict
from chloop import GetCharLoop
from mocp_cli import logger
try:
ModuleNotFoundError
except NameError:
class ModuleNotFoundError(ImportError):
pass

try:
from yt_helper import AUDIO_COMMENTS as COMMENTS, FILES, get_real_basename
if COMMENTS is None:
Expand Down

0 comments on commit 3f70cda

Please sign in to comment.