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 (#5473)
* 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:
parent
041560f9f1
commit
b271e73886
5
.changeset/deep-socks-rule.md
Normal file
5
.changeset/deep-socks-rule.md
Normal file
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user