]> gitweb.pimeys.fr Git - python-myirclib.git/commitdiff
On teste que le code d'erreur et pas son message parce que si on change les locales...
authorVincent Le Gallic <legallic@crans.org>
Mon, 30 Jul 2012 16:28:28 +0000 (18:28 +0200)
committerVincent Le Gallic <legallic@crans.org>
Mon, 30 Jul 2012 16:28:28 +0000 (18:28 +0200)
safesystemcall.py

index f191140c51c994ad95e99bec3b46885b22fc9f8b..01ad3e3c19632f8b492ff2dccf3e40ab894652cd 100644 (file)
@@ -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 why.args[0] == 4:
                     continue
                 else:
                     raise