Skip to content

Commit

Permalink
works without json-rpc dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Feb 23, 2025
1 parent 0a743f5 commit c8bec59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion feeluown/server/handlers/handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ async def handle_request(
from .exec_ import ExecHandler # noqa
from .sub import SubHandler # noqa
from .set_ import SetHandler # noqa
from .jsonrpc_ import JsonRPCHandler # noqa
try:
from .jsonrpc_ import JsonRPCHandler # noqa
except ImportError as e:
logger.warning(f'jsonrpc handler is not available: {e}')
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
'pyshortcuts',
'aionowplaying>=0.10',
],
'webserver': ['sanic', 'websockets', 'json-rpc'],
'jsonrpc': ['json-rpc'],
'webserver': ['sanic', 'json-rpc'],
'webengine': ['PyQtWebEngine'],
# Load cookies from chrome/firefox/...
'cookies': [
Expand Down

0 comments on commit c8bec59

Please sign in to comment.