Fix issue #1 BEACON EXEC abnormal close messages in aprx.log
This commit is contained in:
parent
53a4c464f6
commit
f301d8d2e9
|
|
@ -1,5 +1,5 @@
|
||||||
Package: noaacap
|
Package: noaacap
|
||||||
Version: 0.7.3
|
Version: 0.8
|
||||||
Section: hamradio
|
Section: hamradio
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Dan Srebnick <k2dls at k2dls.net>
|
Maintainer: Dan Srebnick <k2dls at k2dls.net>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
Copyright: 2017 Daniel L. Srebnick <k2dls@k2dls.net>
|
Copyright: 2017-2018 Daniel L. Srebnick <k2dls@k2dls.net>
|
||||||
License: BSD-2-clause
|
License: BSD-2-clause
|
||||||
Files: *
|
Files: *
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
##
|
##
|
||||||
## See /usr/local/share/noaacap/CHANGELOG for change history
|
## See /usr/local/share/noaacap/CHANGELOG for change history
|
||||||
##
|
##
|
||||||
version = "0.7"
|
version = "0.8"
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import pytz
|
import pytz
|
||||||
|
|
@ -249,6 +249,13 @@ for i in range(0, count):
|
||||||
if parms[j].valueName.string == 'UGC':
|
if parms[j].valueName.string == 'UGC':
|
||||||
zcs = parms[j].value.string
|
zcs = parms[j].value.string
|
||||||
|
|
||||||
|
# This handles expired messages found to contain no UGC
|
||||||
|
try:
|
||||||
|
zcs
|
||||||
|
except:
|
||||||
|
log.debug('No zcs in message')
|
||||||
|
continue
|
||||||
|
|
||||||
type = pp[bytes(Phenomena, 'utf-8')].decode('utf-8')
|
type = pp[bytes(Phenomena, 'utf-8')].decode('utf-8')
|
||||||
|
|
||||||
if Action == "CAN":
|
if Action == "CAN":
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
noaacap changelog
|
noaacap changelog
|
||||||
##
|
##
|
||||||
|
Version: 0.8
|
||||||
|
Not Released Yet
|
||||||
|
Fix alerts without UGC causing BEACON EXEC abnormal close
|
||||||
|
##
|
||||||
Version: 0.7
|
Version: 0.7
|
||||||
Release: September 28, 2017
|
Release: September 28, 2017
|
||||||
Added myResend parameter to control message resends.
|
Added myResend parameter to control message resends.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
BSD 2-Clause License
|
BSD 2-Clause License
|
||||||
|
|
||||||
Copyright (c) 2017, Daniel L. Srebnick
|
Copyright (c) 2017-2018, Daniel L. Srebnick
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue