Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/sbp/jit/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from sbp.jit import orientation as orientation
from sbp.jit import sbas as sbas
from sbp.jit import ssr as ssr
from sbp.jit import msg as msg


_SBP_TABLE = dict(list(acq.msg_classes.items())
Expand Down Expand Up @@ -85,4 +86,4 @@ def dispatch(msg_type, table=_SBP_TABLE):
SBP message with a parsed payload.

"""
return table[msg_type]
return table.get(msg_type, msg.SBP)
2 changes: 1 addition & 1 deletion python/sbp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def walk_json_dict(coll):
if isinstance(coll, dict):
return dict((k, walk_json_dict(v)) for (k, v) in iter(coll.items()))
elif isinstance(coll, bytes):
return coll.decode('ascii')
return coll.decode('ascii', errors='replace')
elif hasattr(coll, '__iter__') and not isinstance(coll, str):
return [walk_json_dict(seq) for seq in coll]
else:
Expand Down