fmt
This commit is contained in:
1 file changed
+5
-2
@@ -77,7 +77,10 @@ def main():
|
|||||||
timeout=LOGIN_TIMEOUT_MS,
|
timeout=LOGIN_TIMEOUT_MS,
|
||||||
)
|
)
|
||||||
|
|
||||||
print_and_notif("Browser closed. Please rerun the script.", title="Browser Closed")
|
print_and_notif(
|
||||||
|
"Browser closed. Please rerun the script.",
|
||||||
|
title="Browser Closed",
|
||||||
|
)
|
||||||
|
|
||||||
except PlaywrightTimeoutError:
|
except PlaywrightTimeoutError:
|
||||||
print_and_notif(
|
print_and_notif(
|
||||||
@@ -117,7 +120,7 @@ def main():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
context.close()
|
context.close()
|
||||||
except PlaywrightError: # ignore if already closed
|
except PlaywrightError: # ignore if already closed
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user