Skip to content

Commit

Permalink
Don't raise when SHELL is not set
Browse files Browse the repository at this point in the history
Use os.environ.get instead of dictionary,
which raises KeyError when SHELL is not set.
  • Loading branch information
scpeters committed May 6, 2015
1 parent 219cc99 commit e945e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catkin_tools/resultspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_resultspace_environment(result_space_path, quiet=False, cached=True):
)

# Determine the shell to use to source the setup file
shell_path = os.environ['SHELL']
shell_path = os.environ.get('SHELL', '')
(_, shell_name) = os.path.split(shell_path)

# Use fallback shell if using a non-standard shell
Expand Down

0 comments on commit e945e48

Please sign in to comment.