mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
exception class
This commit is contained in:
parent
9cb4f64516
commit
53d70259ca
@ -396,7 +396,7 @@ class Queue:
|
||||
# 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 BaseException as error:
|
||||
except Exception as error:
|
||||
show_error = app.get_blocks().show_error or isinstance(error, Error)
|
||||
traceback.print_exc()
|
||||
raise Exception(str(error) if show_error else None) from error
|
||||
|
Loading…
Reference in New Issue
Block a user