X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=juju%2Floop.py;fp=juju%2Floop.py;h=aca726b081d1baa06483e17213658c7f621a66bf;hp=4abedfcc38f708185f6f20221b5cbe1e70dd868a;hb=b8a8281b1785358bd5632a119c016f21811172c6;hpb=dcdf82bbc1ef310379f746518b2dd3b006353cb3 diff --git a/juju/loop.py b/juju/loop.py index 4abedfc..aca726b 100644 --- a/juju/loop.py +++ b/juju/loop.py @@ -24,7 +24,7 @@ def run(*steps): try: loop.add_signal_handler(signal.SIGINT, abort) added = True - except ValueError as e: + except (ValueError, OSError, RuntimeError) as e: # add_signal_handler doesn't work in a thread if 'main thread' not in str(e): raise