File tree 2 files changed +3
-3
lines changed
ide/plugins/python-format/src/content/formats
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function assertFalse(expression) {
39
39
40
40
function verify ( statement ) {
41
41
return "try: " + statement + "\n" +
42
- "except AssertionError, e: self.verificationErrors.append(str(e))" ;
42
+ "except AssertionError as e: self.verificationErrors.append(str(e))" ;
43
43
}
44
44
45
45
function verifyTrue ( expression ) {
Original file line number Diff line number Diff line change @@ -315,12 +315,12 @@ this.options = {
315
315
' \n' +
316
316
' def is_element_present(self, how, what):\n' +
317
317
' try: self.driver.find_element(by=how, value=what)\n' +
318
- ' except NoSuchElementException, e: return False\n' +
318
+ ' except NoSuchElementException as e: return False\n' +
319
319
' return True\n' +
320
320
' \n' +
321
321
' def is_alert_present(self):\n' +
322
322
' try: self.driver.switch_to_alert()\n' +
323
- ' except NoAlertPresentException, e: return False\n' +
323
+ ' except NoAlertPresentException as e: return False\n' +
324
324
' return True\n' +
325
325
' \n' +
326
326
' def close_alert_and_get_its_text(self):\n' +
You can’t perform that action at this time.
0 commit comments