Skip to content

Commit

Permalink
Fix CodeQL security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mathoudebine committed Dec 21, 2024
1 parent 07b2de1 commit fd24d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ def stats():
time = f"@{now.hour:02d}:{now.minute:02d}"
else:
logger.error(f"Error {response.status_code} fetching OpenWeatherMap API:")
# logger.debug(f"Response content: {response.content}")
logger.error(response.text)
# logger.error(f"Response content: {response.content}")
# logger.error(response.text)
desc = response.json().get('message')
except Exception as e:
logger.error(f"Error fetching OpenWeatherMap API: {str(e)}")
Expand Down

0 comments on commit fd24d1a

Please sign in to comment.