Skip to content

Commit 8ba2579

Browse files
committed
tools: fix KeyboardInterrupt exception
1 parent 04d4d11 commit 8ba2579

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tools/rtrclient.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ def main():
5757

5858
print("{:40} {:3} {:4}".format("Prefix", "Prefix Length", "ASN"))
5959
with RTRManager(args.hostname, args.port) as mgr:
60-
signal.pause()
61-
62-
63-
64-
65-
60+
try:
61+
signal.pause()
62+
except KeyboardInterrupt:
63+
pass
6664

6765
if __name__ == '__main__':
6866
main()

0 commit comments

Comments
 (0)