Slightly more paranoia in that NSCFArray check

This commit is contained in:
Athanasius committed 2021-04-01 14:45:50 +01:00
1 parent 6a4ab10cd4
commit 87c88b80ea
1 file changed
+1 -1
+1 -1
View File
@@ -587,7 +587,7 @@ class MacConfig(AbstractConfig):
#
# If we can find where to import the definition of NSCFArray
# then we could possibly test against that.
if res and not isinstance(res, str) and not isinstance(res, int):
if res is not None and not isinstance(res, str) and not isinstance(res, int):
return list(res)
return res