Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix(dependencie): opus crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kijk2869 committed Oct 3, 2020
1 parent c5c5009 commit fc9449c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions discodo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@

from . import __version__
from .config import Config
from .natives import opus

log = logging.getLogger("discodo")


if not opus.isLoaded() and not opus.loadDefaultOpus():
raise ValueError(
"Cannot load libopus, please install `libopus-dev` if you are using linux."
)


class loggingFilter(logging.Filter):
def __init__(self, level) -> None:
self.level = level
Expand Down

0 comments on commit fc9449c

Please sign in to comment.