allow unset weather provider
This commit is contained in:
@@ -27,7 +27,10 @@ class Worker(Thread):
|
||||
self.PerformanceData = performance
|
||||
self.UpdateLock = Lock()
|
||||
self.ReportQueue = {}
|
||||
self.WeatherModel = WeatherModel(configuration.GaforId, weather)
|
||||
if None != weather:
|
||||
self.WeatherModel = WeatherModel(configuration.GaforId, weather)
|
||||
else:
|
||||
self.WeatherModel = WeatherModel(0, None)
|
||||
self.RecedingHorizonControl = RecedingHorizonControl(configuration.RecedingHorizonControl)
|
||||
self.Euroscope = euroscope
|
||||
|
||||
|
||||
Reference in New Issue
Block a user