Skip to content

Commit

Permalink
fix useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
ClericPy committed Feb 9, 2025
1 parent 71f37f8 commit 6cfbd24
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torequests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ def ttime(timestamp=None, tzone=None, fail="", fmt="%Y-%m-%d %H:%M:%S"):
# Compatible timestamp with 13-digit milliseconds
timestamp = timestamp / 1000
try:
timestamp = time.time() if timestamp is None else timestamp
return time.strftime(fmt, time.gmtime(timestamp + fix_tz))
except Exception:
return fail
Expand Down

0 comments on commit 6cfbd24

Please sign in to comment.