Skip to content

Commit 5d19c4c

Browse files
committed
Specify ImportError class for exception handler
1 parent 6695582 commit 5d19c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main():
5252
django.setup()
5353
try:
5454
from django.test.runner import DiscoverRunner
55-
except:
55+
except ImportError:
5656
from django.test.simple import DjangoTestSuiteRunner
5757
failures = DjangoTestSuiteRunner(failfast=False).run_tests(['tests'])
5858
else:

0 commit comments

Comments
 (0)