X-Git-Url: http://gitweb.pimeys.fr/?p=python-myirclib.git;a=blobdiff_plain;f=safesystemcall.py;h=bc08691a910576af96d03566f8ea17f918e8acaa;hp=01ad3e3c19632f8b492ff2dccf3e40ab894652cd;hb=009ee1105f7b7502dcc377e9faffdc37f59edb71;hpb=0c2fb077750c0f2fb423f61d71106ebbe55393dd diff --git a/safesystemcall.py b/safesystemcall.py index 01ad3e3..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 type(why.args) == tuple and why.args[0] == 4: + if type(why.args) == tuple and len(why.args)>=1 and why.args[0] == 4: continue else: raise