Skip to content

Commit

Permalink
Specify ImportError class for exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
macro1 committed Oct 31, 2014
1 parent 6695582 commit 5d19c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main():
django.setup()
try:
from django.test.runner import DiscoverRunner
except:
except ImportError:
from django.test.simple import DjangoTestSuiteRunner
failures = DjangoTestSuiteRunner(failfast=False).run_tests(['tests'])
else:
Expand Down

0 comments on commit 5d19c4c

Please sign in to comment.