Skip to content

Commit

Permalink
Merge pull request #3 from akbargumbira/master
Browse files Browse the repository at this point in the history
Fix small error logic on assigning maximum value.
  • Loading branch information
timlinux committed Apr 1, 2015
2 parents 4a2ffbd + 0dce208 commit 5552258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numeric_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def maximum_allowed_value(self, value):
:raises: InvalidMaximumError, TypeError
"""
self._check_type(value)
# If maximum is not set, we can set minimum regardless
if self._maximum_allowed_value is None:
# If minimum is not set, we can set maximum regardless
if self._minimum_allowed_value is None:
self._maximum_allowed_value = value
return
# Otherwise it must be more than the minimum
Expand Down

0 comments on commit 5552258

Please sign in to comment.