Fix "'NoneType' is not iterable" error
The build_options dict contains None objects ! :)
This commit is contained in:
@@ -177,10 +177,11 @@ def detect_warnings(platform, build_options):
|
|||||||
|
|
||||||
# warn about deprecated {python} and {pip}
|
# warn about deprecated {python} and {pip}
|
||||||
for option_name in ['test_command', 'before_build']:
|
for option_name in ['test_command', 'before_build']:
|
||||||
option_value = build_options.get(option_name, '')
|
option_value = build_options.get(option_name)
|
||||||
|
|
||||||
if '{python}' in option_value or '{pip}' in option_value:
|
if option_value:
|
||||||
warnings.append(option_name + ": '{python}' and '{pip}' are no longer needed, and will be removed in a future release. Simply use 'python' or 'pip' instead.")
|
if '{python}' in option_value or '{pip}' in option_value:
|
||||||
|
warnings.append(option_name + ": '{python}' and '{pip}' are no longer needed, and will be removed in a future release. Simply use 'python' or 'pip' instead.")
|
||||||
|
|
||||||
return warnings
|
return warnings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user