From 791b6720e489353bb5a2b35906dd88f558f26c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Sat, 2 Dec 2017 12:44:57 +0100 Subject: [PATCH] Handle NotImplementedError --- ogn/gateway/process.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ogn/gateway/process.py b/ogn/gateway/process.py index 57b0168..0c4b797 100644 --- a/ogn/gateway/process.py +++ b/ogn/gateway/process.py @@ -31,6 +31,9 @@ def message_to_beacon(raw_message, reference_date): beacon = ReceiverBeacon(**message) else: print("Whoops: what is this: {}".format(message)) + except NotImplementedError as e: + logger.error('Received message: {}'.format(raw_message)) + logger.error(e) except ParseError as e: logger.error('Received message: {}'.format(raw_message)) logger.error('Drop packet, {}'.format(e.message))