Tom,
I got an exception error in module restx of version 3.9.1.
Apr 3 17:19:36 pi21 mstk[15364]: engine: Caught unrecoverable exception in
engine:
Apr 3 17:10:14 pi21 mstk[14530]: restx: AWEKAS: Unexpected exception of
type <type 'exceptions.TypeError'>
Apr 3 17:10:14 pi21 mstk[14530]: *** Traceback (most recent call last):
Apr 3 17:10:14 pi21 mstk[14530]: *** File
"/home/weewx/bin/weewx/restx.py", line 350, in run_loop
Apr 3 17:10:14 pi21 mstk[14530]: *** self.process_record(_record,
dbmanager)
Apr 3 17:10:14 pi21 mstk[14530]: *** File
"/home/weewx/bin/weewx/restx.py", line 1693, in process_record
Apr 3 17:10:14 pi21 mstk[14530]: *** r = self.get_record(record,
dbmanager)
Apr 3 17:10:14 pi21 mstk[14530]: *** File
"/home/weewx/bin/weewx/restx.py", line 1689, in get_record
Apr 3 17:10:14 pi21 mstk[14530]: *** r['rainRate'] = rr[0]
Apr 3 17:10:14 pi21 mstk[14530]: *** TypeError: 'NoneType' object has no
attribute '__getitem__'
Apr 3 17:10:14 pi21 mstk[14530]: restx: AWEKAS: Thread exiting. Reason:
'NoneType' object has no attribute '__getitem__'
# Otherwise, augment with rainRate, which AWEKAS expects. If the
# archive does not have rainRate, an exception will be raised.
# Be prepare to catch it.
try:
rr = dbmanager.getSql('select rainRate from %s where
dateTime=?' %
dbmanager.table_name, (r['dateTime'],))
except weedb.OperationalError:
pass
else:
r['rainRate'] = rr[0]
return r
Luc
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.