mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
Yield error when there is no thread running
This commit is contained in:
1 parent
8535877b22
commit
e5dea5884a
1 file changed
+3
@@ -461,6 +461,9 @@ def adminLiveData(context, request):
|
|||||||
# always show the last leg
|
# always show the last leg
|
||||||
currentlegs.insert(0, currentlegs[0]-1)
|
currentlegs.insert(0, currentlegs[0]-1)
|
||||||
|
|
||||||
|
if len(threaded_listener.values()) == 0:
|
||||||
|
return 'The listener does not seem to be started properly. Please reconfigure your connection!'
|
||||||
|
|
||||||
t_up = threaded_listener.values()[0].last_update.strftime('%H:%M:%S')
|
t_up = threaded_listener.values()[0].last_update.strftime('%H:%M:%S')
|
||||||
t_upcount = threaded_listener.values()[0].updatecount
|
t_upcount = threaded_listener.values()[0].updatecount
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user