summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wasp/wasp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index 12a9536..3aba03e 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -12,7 +12,6 @@ import gc
import machine
import watch
import widgets
-import sys
from apps import *
@@ -330,7 +329,9 @@ class Manager():
except KeyboardInterrupt:
raise
except Exception as e:
- sys.print_exception(e)
+ # Only print the exception if the watch provides a way to do so!
+ if 'print_exception' in dir(watch):
+ watch.print_exception(e)
self.switch(CrashApp(e))
# Currently there is no code to control how fast the system