Bug fix - fix missing default var (#2162/ #2118/ #2122 )

This commit is contained in:
dgtlmoon
2024-02-06 17:25:44 +01:00
committed by GitHub
parent 72c7645f60
commit 78a2dceb81
+1 -1
View File
@@ -53,7 +53,7 @@ class BrowserStepsStepException(Exception):
# @todo - make base Exception class that announces via logger()
class PageUnloadable(Exception):
def __init__(self, status_code, url, message, screenshot=False):
def __init__(self, status_code=None, url='', message='', screenshot=False):
# Set this so we can use it in other parts of the app
self.status_code = status_code
self.url = url