Skip to content

Commit

Permalink
depmap KeyError fix
Browse files Browse the repository at this point in the history
Testing Done:
ci

Reviewed at https://rbcommons.com/s/twitter/r/1015/
  • Loading branch information
fkorotkov authored and fkorotkov committed Sep 11, 2014
1 parent f9caf9f commit df4a168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/backend/jvm/tasks/depmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def get_target_type(target):
if target.is_test:
return Depmap.SourceRootTypes.TEST
else:
if isinstance(target, Resources) and resource_target_map[target].is_test:
if isinstance(target, Resources) and target in resource_target_map and resource_target_map[target].is_test:
return Depmap.SourceRootTypes.TEST_RESOURCE
elif isinstance(target, Resources):
return Depmap.SourceRootTypes.RESOURCE
Expand Down

0 comments on commit df4a168

Please sign in to comment.