Skip to content

Commit

Permalink
Merge pull request conda#1040 from minrk/maxval
Browse files Browse the repository at this point in the history
allow progressbar to handle too-small maxval
  • Loading branch information
asmeurer committed Dec 11, 2014
2 parents 76e8ac3 + b589c86 commit 8e424bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda/progressbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ def update(self, value=None):
if value is not None and value is not UnknownLength:
if (self.maxval is not UnknownLength
and not 0 <= value <= self.maxval):

raise ValueError('Value out of range')
# maxval was reported incorrectly. warn?
value = self.maxval

self.currval = value

Expand Down

0 comments on commit 8e424bc

Please sign in to comment.