From 90fa593be75a6d8245897b675ce3623a134e1863 Mon Sep 17 00:00:00 2001 From: PhilipTrauner Date: Sun, 3 Apr 2016 22:16:46 +0200 Subject: [PATCH] Added is_wallaby --- Shared/Utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shared/Utils.py b/Shared/Utils.py index 13f2022..21c6261 100644 --- a/Shared/Utils.py +++ b/Shared/Utils.py @@ -1,5 +1,6 @@ from traceback import print_exception from sys import exc_info +from platform import uname def capture_trace(): exc_type, exc_value, exc_traceback = exc_info() @@ -11,4 +12,7 @@ def is_socket_related_error(error): if type(error) is OSError: if str(error) not in ("Connection closed", "[Errno 9] Bad file descriptor"): return False - return True \ No newline at end of file + return True + +def is_wallaby(): + return "ARMv7" in uname() \ No newline at end of file