🚨 Fixed DeepSource issues
This commit is contained in:
@@ -116,8 +116,9 @@ async def auth(request: Request, response: Response):
|
||||
auth_type=UserAuthTypes.GITHUB,
|
||||
avatar=gzipped_user_avatar(),
|
||||
)
|
||||
# skipcq: PYL-W0703
|
||||
except Exception as e:
|
||||
if type(e) == asyncpg.exceptions.UniqueViolationError:
|
||||
if type(e) is asyncpg.exceptions.UniqueViolationError:
|
||||
error = True
|
||||
counter = 1
|
||||
while error:
|
||||
|
||||
Reference in New Issue
Block a user