Skip to content

Commit

Permalink
Fix AttributeError thrown due to python2 compatibility changes
Browse files Browse the repository at this point in the history
  • Loading branch information
absltkaos committed Aug 2, 2022
1 parent 31b5cdf commit 7984d02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devlab_bench/actions/global_restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def action(**kwargs):
)
containers = global_devlab_docker.get_containers()[1]
project_map = {}
log.info("containers='%s'", containers)
log.info("Devlab related containers to restart: '%s'", containers)
for cont in containers:
cont_name = cont['name']
comp_name = cont_name
Expand Down
2 changes: 1 addition & 1 deletion devlab_bench/helpers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def home(self=None): #pylint: disable=bad-staticmethod-argument,unused-argument
Return the expanded path to the user's home
"""
return os.path.expanduser('~')
except NameError:
except AttributeError:
#Python3
text_input = input #pylint: disable=invalid-name
quote = shlex.quote #pylint: disable=invalid-name
Expand Down

0 comments on commit 7984d02

Please sign in to comment.