Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed authored May 28, 2020
1 parent c48b04f commit 6cfbc48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freezegun/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def decorate_callable(self, func):
def wrapper(*args, **kwargs):
with self as time_factory:
if self.as_arg and self.as_kwarg:
raise Exception()
assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one."
elif self.as_arg:
result = func(time_factory, *args, **kwargs)
elif self.as_kwarg:
Expand Down

0 comments on commit 6cfbc48

Please sign in to comment.