We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c51e5ad + 53651f6 commit b9e086cCopy full SHA for b9e086c
RevitPythonShell/DefaultConfig/init.py
@@ -60,7 +60,10 @@ def __init__(self, uiApplication):
60
import RevitLookup
61
self.RevitLookup = RevitLookup
62
# See note in CollectorExt.cs in the RevitLookup source:
63
- self.RevitLookup.Snoop.CollectorExts.CollectorExt.m_app = uiApplication
+ try:
64
+ self.RevitLookup.Snoop.CollectorExts.CollectorExt.m_app = uiApplication
65
+ except TypeError: # assigning m_app is now not required and even not possible
66
+ pass
67
self.revit = uiApplication
68
69
def lookup(self, element):
0 commit comments