X-Git-Url: http://gitweb.pimeys.fr/?p=python-myirclib.git;a=blobdiff_plain;f=safesystemcall.py;h=bc08691a910576af96d03566f8ea17f918e8acaa;hp=f191140c51c994ad95e99bec3b46885b22fc9f8b;hb=HEAD;hpb=faa875bbe1aa05b5ae187805b28de84ed1c181f3 diff --git a/safesystemcall.py b/safesystemcall.py index f191140..bc08691 100644 --- a/safesystemcall.py +++ b/safesystemcall.py @@ -16,7 +16,7 @@ def systemcall(meth): try: rv = meth(*args, **kwargs) except Exception as why: - if why.args == (4, "Interrupted system call"): + if type(why.args) == tuple and len(why.args)>=1 and why.args[0] == 4: continue else: raise