Skip to content

Commit 63b44ba

Browse files
author
Sakari Rautiainen
committed
Removed catch block for import errors
1 parent d8236ed commit 63b44ba

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

testdroid/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,6 @@ def download_test_screenshots(self, project_id, test_run_id):
688688
logger.info("Screenshot %s already exists - skipping download" % full_path)
689689
else:
690690
raise
691-
except ImportError:
692-
if os.path.isfile(full_path): # fallback if a valid image header can't be found
693-
logger.info("Screenshot %s already exists - skipping download" % full_path)
694-
else:
695-
raise # jump to next block
696691
except:
697692
url = "me/projects/%s/runs/%s/device-runs/%s/screenshots/%s" % (project_id, test_run['id'], device_run['id'], screenshot['id'])
698693
prog = DownloadProgressBar()

0 commit comments

Comments
 (0)