Skip to content

Commit

Permalink
call proper super for UnexpectedAlertPresentException
Browse files Browse the repository at this point in the history
Fixes Issue SeleniumHQ#7886
  • Loading branch information
lukeis committed Oct 8, 2014
1 parent c467e31 commit 20a4471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class UnexpectedAlertPresentException(WebDriverException):
more commands.
"""
def __init__(self, msg=None, screen=None, stacktrace=None, alert_text=None):
super(WebDriverException, self).__init__(msg, screen, stacktrace)
super(UnexpectedAlertPresentException, self).__init__(msg, screen, stacktrace)
self.alert_text = alert_text

def __str__(self):
Expand Down

0 comments on commit 20a4471

Please sign in to comment.