Fix catching of Kaitai decoding exceptions
Kaitai Struct exceptions inherit from 'BaseException' instead of 'Exception' class. This issue is fixed upstream but did not make it to the release of Kaitai Struct (see PR #53). Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>spacecruft
parent
3ccc3ef0fd
commit
8d60968729
|
@ -368,7 +368,7 @@ def decode_demoddata(demoddata, satellite, tlmdecoder):
|
|||
DemodData.objects.filter(pk=demoddata.id).update(
|
||||
is_decoded=True, payload_decoded=json_obj
|
||||
)
|
||||
except Exception: # pylint: disable=W0703
|
||||
except BaseException: # pylint: disable=W0703
|
||||
DemodData.objects.filter(pk=demoddata.id).update(is_decoded=False, payload_decoded='')
|
||||
except (IOError, binascii.Error) as error:
|
||||
LOGGER.error(error, exc_info=True)
|
||||
|
|
Loading…
Reference in New Issue