Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
f519a49f
Commit
f519a49f
authored
Sep 18, 2022
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Sep 18, 2022
Browse files
fix failing typechecking for ctrl+c handling
parent
f75b9e3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
experiments/run.py
experiments/run.py
+1
-7
No files found.
experiments/run.py
View file @
f519a49f
...
...
@@ -357,13 +357,7 @@ else:
with
open
(
path
,
'rb'
)
as
f
:
rt
.
add_run
(
pickle
.
load
(
f
))
# register interrupt handler
def
handle_interrupt
(
signalnum
:
int
,
handler
:
int
):
# pylint: disable=unused-argument
rt
.
interrupt
()
signal
(
SIGINT
,
handle_interrupt
)
signal
(
SIGINT
,
lambda
*
_
:
rt
.
interrupt
())
asyncio
.
run
(
rt
.
start
())
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment