Sunday, January 7, 2018

[python][resolve] argument of type 'NoneType' is not iterable

error code:
if not (val in None):
This is a mistype case, it should be using is to check a value is a NoneType.
if not (val is None):  
Reference:
http://f.dataguru.cn/thread-736401-1-1.html 

No comments :

Post a Comment