mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
chore: linting
This commit is contained in:
parent
219a5977b7
commit
c187b04e82
25 changed files with 102 additions and 108 deletions
|
|
@ -72,9 +72,7 @@ async def add_user_trust(
|
|||
session, user_id=user_id, connector_id=connector_id
|
||||
)
|
||||
if connector is None:
|
||||
raise LookupError(
|
||||
f"connector {connector_id} not found for user {user_id}"
|
||||
)
|
||||
raise LookupError(f"connector {connector_id} not found for user {user_id}")
|
||||
|
||||
trusted = _read_trusted(connector)
|
||||
if tool_name not in trusted:
|
||||
|
|
@ -96,9 +94,7 @@ async def remove_user_trust(
|
|||
session, user_id=user_id, connector_id=connector_id
|
||||
)
|
||||
if connector is None:
|
||||
raise LookupError(
|
||||
f"connector {connector_id} not found for user {user_id}"
|
||||
)
|
||||
raise LookupError(f"connector {connector_id} not found for user {user_id}")
|
||||
|
||||
trusted = _read_trusted(connector)
|
||||
if tool_name in trusted:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue