I\'m getting this error when I run my python script:
TypeError: cannot concatenate \'str\' and \'NoneType\' objects
I\'m pretty sure the \'
For the sake of defensive programming, objects should be checked against nullity before using.
if obj is None:
or
if obj is not None: