1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

Slightly more paranoia in that NSCFArray check

This commit is contained in:
Athanasius 2021-03-13 16:51:15 +00:00
parent 6a4ab10cd4
commit 87c88b80ea

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