Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeptemberHX committed Mar 22, 2022
1 parent 5715b09 commit 681a9ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions users.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ def send_request(user_id, func_obj):
logger.debug(f'<== {user_id}|{data["svcId"]}|{data["patternUrl"]}|{t2}')

if response.status_code == 200:
logger.debug(response.json().keys())
status = response.json()['status']
logger.debug(f'{user_id}|{data["svcId"]}|{data["patternUrl"]}|{status}|{t2 - t1}')
try:
status = response.json()['status']
logger.debug(f'{user_id}|{data["svcId"]}|{data["patternUrl"]}|{status}|{t2 - t1}')
except Exception as e:
logger.debug(response.json())
else:
logger.debug(f'{user_id}|{data["svcId"]}|{data["patternUrl"]}|Fail|{t2 - t1}')

Expand Down

0 comments on commit 681a9ea

Please sign in to comment.