Skip to content

Commit

Permalink
Fixed a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Mar 17, 2015
1 parent d42ee76 commit 728babb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,16 @@ def _get_fixed_mask(same_key_group):
" {} and {}".format(edge, edge_with_mask, mask,
fixed_mask_constraint.mask))
if (fields is not None and
fixed_mask_constraint.fields is not None and
fields != fixed_mask_constraint.fields):
raise PacmanValueError(
"Two Partitioned Edges {} and {} must have the same"
" key and mask, but have different field ranges"
.format(edge, edge_with_mask))
mask = fixed_mask_constraint.mask
edge_with_mask = edge
fields = fixed_mask_constraint.fields
if fixed_mask_constraint.fields is not None:
fields = fixed_mask_constraint.fields

return mask, fields

Expand Down

0 comments on commit 728babb

Please sign in to comment.