Skip to content

Commit 3e79f85

Browse files
committed
Fix handling of sauce test case so ImportError is suppressed
1 parent 77f6a39 commit 3e79f85

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

appium/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@
1515
"""
1616
Appium Python Client
1717
"""
18-
from .saucetestcase import SauceTestCase
19-
from .saucetestcase import on_platforms
18+
try:
19+
from .saucetestcase import SauceTestCase
20+
from .saucetestcase import on_platforms
21+
except ImportError:
22+
# SauceClient not found
23+
pass

0 commit comments

Comments
 (0)