Changeset 7790:de5a66411da8 in orange


Ignore:
Timestamp:
03/31/11 11:33:41 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
2005677bbf179a1ae3e76b6aa8908e9f5dea98a9
Message:

Added another hasattr check for accessing 'controledAttributes' (same problem as r10311)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWBaseWidget.py

    r7727 r7790  
    6565                    continue 
    6666 
    67                 controlledAttributes = getattr(controller, "controlledAttributes", None) 
     67                controlledAttributes = hasattr(controller, "controlledAttributes") and getattr(controller, "controlledAttributes", None) 
    6868                if controlledAttributes: 
    6969                    fullName = myself + "." + name 
Note: See TracChangeset for help on using the changeset viewer.