Skip to content

Commit d3cb945

Browse files
committed
Removed unneeded exception type check
1 parent c156cb2 commit d3cb945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simple_history/management/commands/populate_history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _model_from_natural_key(self, natural_key):
7676
try:
7777
model = get_model(app_label, model)
7878
# Django 1.7 raises a LookupError
79-
except (TypeError, LookupError):
79+
except LookupError: # pragma: no cover
8080
model = None
8181
if not model:
8282
raise ValueError(self.MODEL_NOT_FOUND +

0 commit comments

Comments
 (0)