Farid Karimli commited on
Commit
39406a1
·
1 Parent(s): 4255fe8

reformat 2

Browse files
Files changed (1) hide show
  1. apps/ai_tutor/helpers.py +1 -3
apps/ai_tutor/helpers.py CHANGED
@@ -23,9 +23,7 @@ async def check_user_cooldown(
23
  last_message_time = datetime.fromisoformat(last_message_time_str).replace(
24
  tzinfo=timezone.utc
25
  )
26
- except (
27
- Exception
28
- ) as e: # this probably means the user has never sent a message before
29
  return False, None
30
 
31
  current_time = datetime.fromisoformat(current_time).replace(tzinfo=timezone.utc)
 
23
  last_message_time = datetime.fromisoformat(last_message_time_str).replace(
24
  tzinfo=timezone.utc
25
  )
26
+ except Exception: # this probably means the user has never sent a message before
 
 
27
  return False, None
28
 
29
  current_time = datetime.fromisoformat(current_time).replace(tzinfo=timezone.utc)