From 311c532d1f3f49878af0bc1bb39f356079537e72 Mon Sep 17 00:00:00 2001 From: Sven Steudte Date: Mon, 30 Oct 2017 00:38:16 +0100 Subject: [PATCH] Added exception handler --- decoder/decoder.py | 2 ++ decoder/html/index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/decoder/decoder.py b/decoder/decoder.py index 309f320..d1233ee 100755 --- a/decoder/decoder.py +++ b/decoder/decoder.py @@ -119,6 +119,8 @@ if args.device == 'I': # Source APRS-IS buf += tn.read_eager().decode('ascii') except EOFError: # Server has connection closed wdg = 0 # Tell watchdog to restart connection + except UnicodeDecodeError: + pass # Line handler if '\n' in buf: diff --git a/decoder/html/index.php b/decoder/html/index.php index 381605f..787527c 100644 --- a/decoder/html/index.php +++ b/decoder/html/index.php @@ -57,7 +57,7 @@ function drawItems() { // Image Info Window var infowindow = new google.maps.InfoWindow({ - content: '' + content: '' }); marker.addListener('mouseover', function() { infowindow.open(map, marker);