Skip to content

Commit

Permalink
Remove a redundant str() when logging the exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Sep 5, 2024
1 parent 8ca9ed7 commit f17aef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openquake/engine/aristotle.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_aristotle_allparams(rupture_dict, time_event,
station_data_file = download_station_data_file(
rupture_dict['usgs_id'])
except HTTPError as exc:
logging.info(f'Station data is not available: {str(exc)}')
logging.info(f'Station data is not available: {exc}')
rupture_file = rupdic.pop('rupture_file')
if rupture_file:
inputs['rupture_model'] = rupture_file
Expand Down
2 changes: 1 addition & 1 deletion openquake/server/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def aristotle_validate(request):
try:
station_data_file = download_station_data_file(dic['usgs_id'])
except HTTPError as exc:
logging.info(f'Station data is not available: {str(exc)}')
logging.info(f'Station data is not available: {exc}')
params['station_data_file'] = None
else:
params['station_data_file'] = station_data_file
Expand Down

0 comments on commit f17aef5

Please sign in to comment.