2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-04-24 13:01:18 +08:00

Remove except asyncio.CancelledError which is no longer necessary due to 53d7025 ()

* Remove `except asyncio.CancelledError` which is no longer necessary due to 53d7025

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Yuichiro Tachibana (Tsuchiya) 2023-09-12 02:39:52 +08:00 committed by GitHub
parent 041560f9f1
commit b271e73886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

@ -0,0 +1,5 @@
---
"gradio": minor
---
feat:Remove except asyncio.CancelledError which is no longer necessary due to 53d7025

@ -391,11 +391,6 @@ class Queue:
gr_request=gr_request,
fn_index_inferred=fn_index_inferred,
)
except asyncio.CancelledError:
# `asyncio.CancelledError` can be raised in a normal case and we don't want to show it to the user,
# so we catch it here before the `BaseException` handler that prints the traceback.
# Ref: https://github.com/gradio-app/gradio/pull/5165#discussion_r1310497840
raise
except Exception as error:
show_error = app.get_blocks().show_error or isinstance(error, Error)
traceback.print_exc()