Skip to content

Commit

Permalink
Do not cover the return when loaddata command is launched, because it…
Browse files Browse the repository at this point in the history
…'s impossible to do
  • Loading branch information
Fantomas42 committed Aug 2, 2013
1 parent a11550f commit 47bbeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zinnia/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def disable_for_loaddata(signal_handler):
def wrapper(*args, **kwargs):
for fr in inspect.stack():
if inspect.getmodulename(fr[1]) == 'loaddata':
return
return # pragma: no cover
signal_handler(*args, **kwargs)

return wrapper
Expand Down

0 comments on commit 47bbeaf

Please sign in to comment.