mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-09-18 06:39:55 +00:00
make oauth client trully optional (#84)
Same old song, after migraiton to packages some optional modules are being imported globally which lead to making hard dependency
This commit is contained in:
@ -53,7 +53,7 @@ class LoginView(BaseView):
|
||||
Examples:
|
||||
This request must not be used directly.
|
||||
"""
|
||||
from ahriman.core.auth import OAuth
|
||||
from ahriman.core.auth.oauth import OAuth
|
||||
|
||||
oauth_provider = self.validator
|
||||
if not isinstance(oauth_provider, OAuth): # there is actually property, but mypy does not like it anyway
|
||||
|
Reference in New Issue
Block a user