Added is_wallaby
This commit is contained in:
parent
9406d5ef7d
commit
90fa593be7
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from traceback import print_exception
|
from traceback import print_exception
|
||||||
from sys import exc_info
|
from sys import exc_info
|
||||||
|
from platform import uname
|
||||||
|
|
||||||
def capture_trace():
|
def capture_trace():
|
||||||
exc_type, exc_value, exc_traceback = exc_info()
|
exc_type, exc_value, exc_traceback = exc_info()
|
||||||
|
@ -11,4 +12,7 @@ def is_socket_related_error(error):
|
||||||
if type(error) is OSError:
|
if type(error) is OSError:
|
||||||
if str(error) not in ("Connection closed", "[Errno 9] Bad file descriptor"):
|
if str(error) not in ("Connection closed", "[Errno 9] Bad file descriptor"):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def is_wallaby():
|
||||||
|
return "ARMv7" in uname()
|
Reference in a new issue