Skip to content

Commit

Permalink
Merge pull request #162 from jbohren-forks/this-package-error
Browse files Browse the repository at this point in the history
build: fixing bad crash when --this is used when not in a package
  • Loading branch information
wjwwood committed Mar 16, 2015
2 parents 454c94c + 721f841 commit 5570d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catkin_tools/verbs/catkin_build/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def main(opts):
# Determine the enclosing package
try:
this_package = find_enclosing_package()
except InvalidPackage:
pass
except (InvalidPackage, RuntimeError):
this_package = None

# Handle context-based package building
if opts.build_this:
Expand Down

0 comments on commit 5570d59

Please sign in to comment.