I encountered a very strange Error-Message with one of my python-scripts:
#some code here if rmb.positive: #drop selected Object try: if ow['selected'] != 'None' and ow['selected'] != '': #checking a Property selected = ow['selected'] selected.removeParent() except: TypeError
Somehow the terminal still shows me this message:
Python script error - object ‘Hand_Grab.R’, controller ‘interaction#CONTR#2’:
Traceback (most recent call last):
File “interaction.py”, line 89, in <module>
if ow[‘selected’] != ‘None’ and ow[‘selected’] != ‘’:
TypeError: argument of type ‘NoneType’ is not iterable
Normally the try - except should stop the Error to be shown, but it doesn’t.
I’ve tried this with 2 versions - both display this Error
I’ll be pleased if somebody can help me.