Skip to content

Commit 5c68a73

Browse files
committed
Merge branch 'fix_python_comp_check' into 'master'
Fix AttributeError thrown due to python2 compatibility changes See merge request evernym/utilities/devlab!16
2 parents 31b5cdf + 7984d02 commit 5c68a73

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

devlab_bench/actions/global_restart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def action(**kwargs):
1818
)
1919
containers = global_devlab_docker.get_containers()[1]
2020
project_map = {}
21-
log.info("containers='%s'", containers)
21+
log.info("Devlab related containers to restart: '%s'", containers)
2222
for cont in containers:
2323
cont_name = cont['name']
2424
comp_name = cont_name

devlab_bench/helpers/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def home(self=None): #pylint: disable=bad-staticmethod-argument,unused-argument
3434
Return the expanded path to the user's home
3535
"""
3636
return os.path.expanduser('~')
37-
except NameError:
37+
except AttributeError:
3838
#Python3
3939
text_input = input #pylint: disable=invalid-name
4040
quote = shlex.quote #pylint: disable=invalid-name

0 commit comments

Comments
 (0)