Skip to content

Commit

Permalink
Fix error message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Jun 26, 2024
1 parent 69ea6b9 commit 4a22a5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion augur/curate/apply_geolocation_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def transform_geolocations(geolocation_rules, geolocation):

if rules_applied > 1000:
raise CyclicGeolocationRulesError(
"More than 1000 geolocation rules applied on the same entry {geolocation!r}."
f"More than 1000 geolocation rules applied on the same entry {geolocation!r}."
)

# Create a new list of values for comparison to previous values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Attempting to use the rules with a match results in an error.
$ echo '{"region": "r_old", "country": "c_old", "division": "d_old", "location": "l_old"}' \
> | ${AUGUR} curate apply-geolocation-rules \
> --geolocation-rules rules.tsv
ERROR: More than 1000 geolocation rules applied on the same entry {geolocation!r}.
ERROR: More than 1000 geolocation rules applied on the same entry ['r_old', 'c_old', 'd_old', 'l_old'].
[2]

0 comments on commit 4a22a5a

Please sign in to comment.