Skip to content

Commit 288a289

Browse files
committed
Merge branch 'release/v3.34.4'
2 parents d4cac83 + a2aeef5 commit 288a289

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

progressbar/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
long running operations.
2020
'''.strip().split())
2121
__email__ = 'wolph@wol.ph'
22-
__version__ = '3.34.3'
22+
__version__ = '3.34.4'
2323
__license__ = 'BSD'
2424
__copyright__ = 'Copyright 2015 Rick van Hattem (Wolph)'
2525
__url__ = 'https://github.com/WoLpH/python-progressbar'

progressbar/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __call__(self, progress, data, **kwargs):
198198
data[name] = data[key]
199199
else:
200200
data[name] = transform(data[key])
201-
except: # pragma: no cover
201+
except (KeyError, ValueError, IndexError): # pragma: no cover
202202
pass
203203

204204
return FormatWidgetMixin.__call__(self, progress, data, **kwargs)

tests/test_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_excepthook():
5959

6060
try:
6161
raise RuntimeError()
62-
except:
62+
except RuntimeError:
6363
progressbar.streams.excepthook(*sys.exc_info())
6464

6565
progressbar.streams.unwrap_excepthook()

0 commit comments

Comments
 (0)