Skip to content

Commit 68320f4

Browse files
author
BryanSchroeder
committed
fixing browser for lint
1 parent eaec04f commit 68320f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dash/testing/browser.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@ def percy_snapshot(
160160
if widths is None:
161161
widths = [1280]
162162
try:
163-
import asgiref # pylint: disable=unused-import, # noqa: F401
164-
name += '_async'
165-
except:
163+
import asgiref # pylint: disable=unused-import, import-outside-toplevel # noqa: F401, C0415
164+
165+
name += "_async"
166+
except ImportError:
166167
pass
167168

168169
logger.info("taking snapshot name => %s", name)

0 commit comments

Comments
 (0)