summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-09-22 20:14:45 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-09-22 20:14:45 (GMT)
commit7075f5689eacbf586324495b1fda3cc1baf03173 (patch)
tree7d0f5a30a32fe432bd7ebb811077329563aabfbe
parent6bf350a6e9f785609b0f82bea3328998fde57ac4 (diff)
wasp: Fix broken indention
Currently the simulator cannot run correctly because the indentation in Manager.__init__ mixes tab and spaces. This is something CPython3 doesn't like but MicroPython is ok about. Fix the obvious by using correct indentation. Fixes: 889115f ("wasp: Allow app initialization to fail") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--wasp/wasp.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py
index 15bcc21..8f7e8a8 100644
--- a/wasp/wasp.py
+++ b/wasp/wasp.py
@@ -116,18 +116,18 @@ class Manager():
# TODO: Eventually these should move to main.py
for app, qr in ( (ClockApp, True),
- (StepCounterApp, True),
- (StopwatchApp, True),
- (HeartApp, True),
- (FlashlightApp, False),
- (SettingsApp, False),
- (TestApp, False) ):
- try:
- self.register(app(), qr)
- except:
- # Let's not bring the whole device down just because there's
- # an exception starting one of the apps...
- pass
+ (StepCounterApp, True),
+ (StopwatchApp, True),
+ (HeartApp, True),
+ (FlashlightApp, False),
+ (SettingsApp, False),
+ (TestApp, False) ):
+ try:
+ self.register(app(), qr)
+ except:
+ # Let's not bring the whole device down just because there's
+ # an exception starting one of the apps...
+ pass
def register(self, app, quick_ring=False):
"""Register an application with the system.