Handled TypeError while installing any sibling python packages
The below error is coming on mol-centos7 jobs while installing sibling for python2 packeges on centos7 Error: TypeError: initial_value must be unicode or None, not str This patch handled the TypeError while installing sibling for python packeges for centos7. Closes-Bug: #1946641 Change-Id: Ie8058cca92d099e50af19b95b4c417c5a665da0d
This commit is contained in:
parent
ad56b0b4eb
commit
84b86437c5
@ -328,7 +328,7 @@ def main():
|
||||
# Workaround for lack of configparser.read_string() on Python 2.7
|
||||
try:
|
||||
tox_config.read_string(tox_clean_config)
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
tox_config.readfp(StringIO(unicode(tox_clean_config))) # noqa: F821
|
||||
|
||||
envlist = get_envlist(tox_config)
|
||||
|
Loading…
Reference in New Issue
Block a user