error handling in decoder.py

This commit is contained in:
Schrolli 2015-05-26 09:14:04 +02:00
parent 297f27c81c
commit be9aa3b722

View file

@ -4,7 +4,7 @@
import logging
def decode(freq, decoded):
try:
#FMS Decoder Section
#check FMS: -> check CRC -> validate -> check double alarm -> log
if "FMS:" in decoded:
@ -25,3 +25,6 @@ def decode(freq, decoded):
logging.debug("recieved POCSAG")
from includes.decoders import poc
poc.decode(freq, decoded)
except:
logging.exception("cannot start decoder")