diff --git a/.github/workflows/comment-bot.yml b/.github/workflows/comment-bot.yml index 4451632e7..b44ee7ba7 100644 --- a/.github/workflows/comment-bot.yml +++ b/.github/workflows/comment-bot.yml @@ -29,6 +29,7 @@ jobs: post({ owner: context.repo.owner, repo: context.repo.repo, comment_id: context.payload.comment.id, content: "eyes"}) + github-token: ${{ secrets.GH_TOKEN }} - name: Tag Commit run: | git clone https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} repo @@ -48,3 +49,4 @@ jobs: post({ owner: context.repo.owner, repo: context.repo.repo, comment_id: context.payload.comment.id, content: "rocket"}) + github-token: ${{ secrets.GH_TOKEN }} diff --git a/.meta/.readme.rst b/.meta/.readme.rst index 7d91f4e24..dbcfd8bb8 100644 --- a/.meta/.readme.rst +++ b/.meta/.readme.rst @@ -27,7 +27,7 @@ iterable with ``tqdm(iterable)``, and you're done! ``tqdm(range(N))``. |Screenshot| - |Video| |Slides| + |Video| |Slides| |Merch| It can also be executed as a module with pipes: @@ -1132,7 +1132,7 @@ Helper methods are available in ``tqdm.contrib.logging``. For example: Monitoring thread, intervals and miniters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -``tqdm`` implements a few tricks to to increase efficiency and reduce overhead. +``tqdm`` implements a few tricks to increase efficiency and reduce overhead. - Avoid unnecessary frequent bar refreshing: ``mininterval`` defines how long to wait between each refresh. ``tqdm`` always gets updated in the background, @@ -1162,6 +1162,11 @@ The monitor thread may be disabled application-wide by setting ``tqdm.tqdm.monitor_interval = 0`` before instantiation of any ``tqdm`` bar. +Merch +----- + +You can buy `tqdm branded merch `__ now! + Contributions ------------- @@ -1220,6 +1225,8 @@ Citation information: |DOI| :target: https://tqdm.github.io/video .. |Slides| image:: https://img.tqdm.ml/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html +.. |Merch| image:: https://img.tqdm.ml/merch.jpg + :target: https://tqdm.github.io/merch .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest .. |Coverage-Status| image:: https://img.shields.io/coveralls/github/tqdm/tqdm/master?logo=coveralls diff --git a/README.rst b/README.rst index 6909cdd02..9534ef7b4 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ iterable with ``tqdm(iterable)``, and you're done! ``tqdm(range(N))``. |Screenshot| - |Video| |Slides| + |Video| |Slides| |Merch| It can also be executed as a module with pipes: @@ -1351,7 +1351,7 @@ Helper methods are available in ``tqdm.contrib.logging``. For example: Monitoring thread, intervals and miniters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -``tqdm`` implements a few tricks to to increase efficiency and reduce overhead. +``tqdm`` implements a few tricks to increase efficiency and reduce overhead. - Avoid unnecessary frequent bar refreshing: ``mininterval`` defines how long to wait between each refresh. ``tqdm`` always gets updated in the background, @@ -1381,6 +1381,11 @@ The monitor thread may be disabled application-wide by setting ``tqdm.tqdm.monitor_interval = 0`` before instantiation of any ``tqdm`` bar. +Merch +----- + +You can buy `tqdm branded merch `__ now! + Contributions ------------- @@ -1439,6 +1444,8 @@ Citation information: |DOI| :target: https://tqdm.github.io/video .. |Slides| image:: https://img.tqdm.ml/slides.jpg :target: https://tqdm.github.io/PyData2019/slides.html +.. |Merch| image:: https://img.tqdm.ml/merch.jpg + :target: https://tqdm.github.io/merch .. |Build-Status| image:: https://img.shields.io/github/workflow/status/tqdm/tqdm/Test/master?logo=GitHub :target: https://github.com/tqdm/tqdm/actions?query=workflow%3ATest .. |Coverage-Status| image:: https://img.shields.io/coveralls/github/tqdm/tqdm/master?logo=coveralls diff --git a/tqdm/utils.py b/tqdm/utils.py index aae87e454..646659909 100644 --- a/tqdm/utils.py +++ b/tqdm/utils.py @@ -285,7 +285,7 @@ def _screen_shape_linux(fp): # pragma: no cover except Exception: try: return [int(os.environ[i]) - 1 for i in ("COLUMNS", "LINES")] - except KeyError: + except (KeyError, ValueError): return None, None