Skip to content

Commit

Permalink
Very minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Prescod committed Sep 1, 2022
1 parent 5e5747b commit 696e2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowfakery/fakedata/fake_data_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _normalize_timezone(timezone=None):
else:
if not isinstance(timezone, dateutil.relativedelta.relativedelta):
raise exc.DataGenError( # pragma: no cover
f"Type should be a relativedelta, not {type(timezone)}: {timezone}"
f"`timezone` should be a `relativedelta`, not `{type(timezone).__name__}`: {timezone}"
)
return datetime.timezone(
datetime.timedelta(hours=timezone.hours, minutes=timezone.minutes)
Expand Down

0 comments on commit 696e2da

Please sign in to comment.