]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tests: Resolve pep8 issues
authorStephen Finucane <stephen@that.guru>
Thu, 17 May 2018 09:15:22 +0000 (10:15 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 17 May 2018 09:15:46 +0000 (10:15 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/browser.py

index 3ea3266b8f4f40e29ec4784e135be5851cce6440..b2024728234345334f367cf2e321b780604bad70 100644 (file)
@@ -23,7 +23,7 @@ import time
 
 try:
     from django.contrib.staticfiles.testing import StaticLiveServerTestCase
-except:  # Django < 1.7
+except ImportError:  # Django < 1.7
     from django.test import LiveServerTestCase as StaticLiveServerTestCase
 from selenium.common.exceptions import (
     NoSuchElementException, StaleElementReferenceException,