Skip to content

Commit db30d6e

Browse files
committed
3.1.0
Fix a bug of the webtools script.
1 parent 3267b22 commit db30d6e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: webtools.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
import urllib3
2424

2525
try:
26-
from tqdm.tqdm import wrapattr
26+
from tqdm import tqdm
27+
wrapattr=tqdm.wrapattr
2728
except ImportError:
2829
import contextlib
2930

3031
@contextlib.contextmanager
3132
def wrapattr(req, mode=None, total=0, desc=None):
32-
return req
33+
yield req
3334

3435
__all__ = [
3536
'get_token',

0 commit comments

Comments
 (0)