Log a warning for dispatch exceptions
@@ -16,6 +16,7 @@ import datetime
import time
import uuid
import six
+import warnings
import numpy as np
@@ -143,8 +144,8 @@ class Framer(six.Iterator):
msg = SBP(msg_type, sender, msg_len, data, crc)
try:
msg = self._dispatch(msg)
- except:
- pass
+ except Exception as exc:
+ warnings.warn("SBP dispatch error: %s" % (exc,))
return msg
def __call__(self, *msgs, **metadata):
