Skip to content

Commit

Permalink
update error message for wrong argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
spulec committed May 22, 2013
1 parent e1efae4 commit 67257ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freezegun/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def freeze_time(time_to_freeze, tz_offset=0):
string_type = str

if not isinstance(time_to_freeze, string_type):
raise TypeError(('freeze_time() expected a string '
'but got type %s.') % type(time_to_freeze))
raise TypeError(('freeze_time() expected a string, date instance, or '
'datetime instance, but got type {0}.').format(time_to_freeze))

return _freeze_time(time_to_freeze, tz_offset)

0 comments on commit 67257ea

Please sign in to comment.