Skip to content

Commit f1f5f97

Browse files
authored
Inspector: Fix errors on type conversion
1 parent edb5e75 commit f1f5f97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugindevtools/PluginDevTools/PluginDevToolsDocker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,11 @@ def loadItemInfo(self, obj):
14941494
if propName not in metaDict['properties']:
14951495
if propName == 'sizeHint' and obj.property('minimumSizeHint').isEmpty(): continue
14961496
propType = prop.typeName()
1497-
propValue = pprint.pformat( obj.property(propName) )
1497+
propValue = ''
1498+
try:
1499+
propValue = pprint.pformat( obj.property(propName) )
1500+
except TypeError:
1501+
propValue = "[unavailable]"
14981502
className = None
14991503

15001504
if inheritsFrom:

0 commit comments

Comments
 (0)