Skip to content

Commit

Permalink
refactor to use f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
phycodurus committed Sep 13, 2023
1 parent 6cfd34d commit f8479ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tom_observations/facility.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_service_classes():
try:
clazz = import_string(service)
except (ImportError, AttributeError):
raise ImportError('Could not import {}. Did you provide the correct path?'.format(service))
raise ImportError(f'Could not import {service}. Did you provide the correct path?')
service_choices[clazz.name] = clazz
return service_choices

Expand Down

0 comments on commit f8479ba

Please sign in to comment.