Skip to content

Commit

Permalink
Fixed unhandled config context options warning (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
racko authored and mikepurvis committed Mar 26, 2019
1 parent 501ca5c commit ca063b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions catkin_tools/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ def __init__(
"""
self.__locked = False

# Check for unhandled context options
if len(kwargs) > 0:
print('Warning: Unhandled config context options: {}'.format(kwargs), file=sys.stderr)

# Validation is done on assignment
self.workspace = workspace

Expand All @@ -312,7 +308,11 @@ def __init__(
default = space_dict['default']
if space_suffix and space != 'source':
default += space_suffix
setattr(self, key_name, kwargs.get(key_name, default))
setattr(self, key_name, kwargs.pop(key_name, default))

# Check for unhandled context options
if len(kwargs) > 0:
print('Warning: Unhandled config context options: {}'.format(kwargs), file=sys.stderr)

self.destdir = os.environ['DESTDIR'] if 'DESTDIR' in os.environ else None

Expand Down

0 comments on commit ca063b4

Please # to comment.