some uploaders do not need to augment records, so they should not have to override get_record in order to avoid an attempt to dereference a None

This commit is contained in:
Matthew Wall
2019-04-17 00:02:48 -04:00
parent e54b942557
commit 459ccb1309

View File

@@ -244,6 +244,10 @@ class RESTThread(threading.Thread):
returns: A dictionary of weather values"""
# this will not work without a dbmanager
if dbmanager is None:
return record
_time_ts = record['dateTime']
_sod_ts = weeutil.weeutil.startOfDay(_time_ts)