2019-08-26 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the 'pypad_live365.py' PyPAD script that caused
	an infinite loop.
This commit is contained in:
Fred Gleason
2019-08-27 17:56:25 -04:00
parent 42c91a7cfd
commit d3e3e708f1
2 changed files with 28 additions and 27 deletions

View File

@@ -18994,3 +18994,6 @@
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'pypad_liqcomp.py' PyPAD script that caused
an infinite loop.
2019-08-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'pypad_live365.py' PyPAD script that caused
an infinite loop.

View File

@@ -32,9 +32,8 @@ def eprint(*args,**kwargs):
def ProcessPad(update):
n=1
try:
while(True):
section='Station'+str(n)
while(True):
if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW):
member=update.escape(update.config().get(section,'MemberName'),pypad.ESCAPE_URL)
password=update.escape(update.config().get(section,'Password'),pypad.ESCAPE_URL)
@@ -57,9 +56,8 @@ def ProcessPad(update):
update.syslog(syslog.LOG_WARNING,'['+section+'] failed: '+curl.errstr())
curl.close()
n=n+1
section='Station'+str(n)
except configparser.NoSectionError:
return
#
# 'Main' function