mirror of
https://github.com/weewx/weewx.git
synced 2026-06-09 01:25:20 -04:00
Now calls __getattr__ directly in the target model instead of __getattribute__, because the latter does never calls __getattr__.
This commit is contained in:
@@ -88,7 +88,7 @@ class ModelView(object):
|
||||
|
||||
# This will raise an AttributeError exception if the model
|
||||
# does not support the attribute 'attr':
|
||||
v = self.model.__getattribute__(attr)
|
||||
v = self.model.__getattr__(attr)
|
||||
|
||||
# If we made it this far, the model does have attribute 'attr'.
|
||||
# Is it a scalar?
|
||||
|
||||
Reference in New Issue
Block a user