From 434e5f1e8cf4f2d21a08f77a9a227cd308c1d1ff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jul 2020 21:58:38 +0100 Subject: [PATCH] Debug --- daemon.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index ea9bd706..9b9c6182 100644 --- a/daemon.py +++ b/daemon.py @@ -7661,9 +7661,12 @@ class PubServer(BaseHTTPRequestHandler): self.server.POSTbusy = False return if '&submitOnCalendar=' in optionsConfirmParams: - onCalendar = optionsConfirmParams.split('onCalendar=')[1] - if '&' in onCalendar: - onCalendar = onCalendar.split('&')[0] + onCalendar = '' + if 'onCalendar=' in optionsConfirmParams: + onCalendar = optionsConfirmParams.split('onCalendar=')[1] + if '&' in onCalendar: + onCalendar = onCalendar.split('&')[0] + print('optionsConfirmParams: ' + optionsConfirmParams) print('onCalendar: ' + onCalendar) if onCalendar == 'on': addPersonToCalendar(self.server.baseDir,