We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ddfee commit ac6e957Copy full SHA for ac6e957
playwright/__main__.py
@@ -19,11 +19,14 @@
19
20
21
def main() -> None:
22
- driver_executable, driver_cli = compute_driver_executable()
23
- completed_process = subprocess.run(
24
- [driver_executable, driver_cli, *sys.argv[1:]], env=get_driver_env()
25
- )
26
- sys.exit(completed_process.returncode)
+ try:
+ driver_executable, driver_cli = compute_driver_executable()
+ completed_process = subprocess.run(
+ [driver_executable, driver_cli, *sys.argv[1:]], env=get_driver_env()
+ )
27
+ sys.exit(completed_process.returncode)
28
+ except KeyboardInterrupt:
29
+ sys.exit(130)
30
31
32
if __name__ == "__main__":
0 commit comments