Further pleasing pylint deity

This commit is contained in:
Miroslav Stampar
2019-06-04 12:15:39 +02:00
parent c154e64a19
commit 3ac1283900
13 changed files with 41 additions and 17 deletions

View File

@@ -598,7 +598,7 @@ class Metasploit(object):
except select.error as ex:
# Reference: https://github.com/andymccurdy/redis-py/pull/743/commits/2b59b25bb08ea09e98aede1b1f23a270fc085a9f
if (ex[0] if six.PY2 else ex.errno) == errno.EINTR:
if ex.args[0] == errno.EINTR:
continue
else:
return proc.returncode