aboutsummaryrefslogtreecommitdiffstats
path: root/lib/progressbar/progressbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/progressbar/progressbar.py')
-rw-r--r--lib/progressbar/progressbar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/progressbar/progressbar.py b/lib/progressbar/progressbar.py
index 2873ad6ca..d4da10ab7 100644
--- a/lib/progressbar/progressbar.py
+++ b/lib/progressbar/progressbar.py
@@ -5,6 +5,8 @@
#
# (With some small changes after importing into BitBake)
#
+# SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear
+#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
@@ -251,7 +253,7 @@ class ProgressBar(object):
if (self.maxval is not UnknownLength
and not 0 <= value <= self.maxval):
- raise ValueError('Value out of range')
+ self.maxval = value
self.currval = value