Permalink
Browse files

no error if screenshot fails

  • Loading branch information...
Janet
Janet committed Dec 29, 2012
1 parent 12ff8bb commit b01cbec1fea26b0340120dd2a8a4f499295e8f57
Showing with 2 additions and 0 deletions.
  1. +2 −0 apps/webdriver_testing/webdriver_base.py
@@ -58,6 +58,8 @@ def tearDown(self):
screenshot_file = ('apps/webdriver_testing/'
'Results/%s.png' % self.id())
self.browser.get_screenshot_as_file(screenshot_file)
+ except:
+ pass
finally: #But don't panic if fails
try:
self.browser.quit()

0 comments on commit b01cbec

Please sign in to comment.