mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 10:44:11 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -15,13 +15,11 @@
|
|||
|
||||
from ._base import Config, ConfigError
|
||||
|
||||
MISSING_JWT = (
|
||||
"""Missing jwt library. This is required for jwt login.
|
||||
MISSING_JWT = """Missing jwt library. This is required for jwt login.
|
||||
|
||||
Install by running:
|
||||
pip install pyjwt
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
class JWTConfig(Config):
|
||||
|
@ -34,6 +32,7 @@ class JWTConfig(Config):
|
|||
|
||||
try:
|
||||
import jwt
|
||||
|
||||
jwt # To stop unused lint.
|
||||
except ImportError:
|
||||
raise ConfigError(MISSING_JWT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue