kopia lustrzana https://github.com/glidernet/python-ogn-client
README: Remove newlines in code listing
rodzic
e564fa48d1
commit
36641584ae
|
@ -36,11 +36,9 @@ def process_beacon(raw_message):
|
||||||
if raw_message[0] == '#':
|
if raw_message[0] == '#':
|
||||||
print('Server Status: {}'.format(raw_message))
|
print('Server Status: {}'.format(raw_message))
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
beacon = parse_aprs(raw_message)
|
beacon = parse_aprs(raw_message)
|
||||||
beacon.update(parse_ogn_beacon(beacon['comment']))
|
beacon.update(parse_ogn_beacon(beacon['comment']))
|
||||||
|
|
||||||
print('Received {beacon_type} from {name}'.format(**beacon))
|
print('Received {beacon_type} from {name}'.format(**beacon))
|
||||||
except ParseError as e:
|
except ParseError as e:
|
||||||
print('Error, {}'.format(e.message))
|
print('Error, {}'.format(e.message))
|
||||||
|
|
Ładowanie…
Reference in New Issue