Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
b155108e
Commit
b155108e
authored
Jan 17, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
receiver exception now doesnt reset the active receiver
parent
8cc454f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
df-aggregator.py
df-aggregator.py
+14
-0
No files found.
df-aggregator.py
View file @
b155108e
...
...
@@ -120,8 +120,22 @@ class receiver:
except
KeyboardInterrupt
:
finish
()
except
Exception
as
ex
:
# TODO(s1z): This is a bullshit handler!
# Has to be changed to appropriate actions depend on
# exception we get.
# It doesn't make any sense to turn off a receiver if
# there was something wrong with the data/network/etc!
# So i've added check. If we have isActive == True, then
# we do nothing with the receiver.
# TODO(s1z): I've left this line just to show
# that there's something wrong with the receiver!
if
first_run
:
self
.
station_id
=
"Unknown"
if
self
.
isActive
:
return
self
.
latitude
=
0.0
self
.
longitude
=
0.0
self
.
heading
=
0.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment