aboutsummaryrefslogtreecommitdiff
path: root/toss-aws-eip/toss-aws-eip.py
diff options
context:
space:
mode:
Diffstat (limited to 'toss-aws-eip/toss-aws-eip.py')
-rwxr-xr-xtoss-aws-eip/toss-aws-eip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/toss-aws-eip/toss-aws-eip.py b/toss-aws-eip/toss-aws-eip.py
index 2029ae0..0b2e9cd 100755
--- a/toss-aws-eip/toss-aws-eip.py
+++ b/toss-aws-eip/toss-aws-eip.py
@@ -258,7 +258,7 @@ def OptInSignalHandler (sname: str, handler: Callable):
'''Install the signal handler if the signal with the name exists on the
platform.'''
if hasattr(signal, sname):
- return signal.signal(signal.Signals(sname), handler)
+ return signal.signal(signal.Signals[sname], handler)
def HandleSignal (sn, sf):
'''Exit signal handler'''