mirror of
https://github.com/weewx/weewx.git
synced 2026-04-18 00:26:57 -04:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user