idolezal commited on
Commit
55d31fc
β€’
1 Parent(s): d6ac180

Catch all exceptions

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def process_submission(*inputs):
72
  gr.update(visible=False),
73
  gr.update(visible=False),
74
  )
75
- except (TypeError, RuntimeError) as err:
76
  gr.Warning(str(err))
77
  return (
78
  gr.update(value='Pre-submit model', visible=True, interactive=True),
 
72
  gr.update(visible=False),
73
  gr.update(visible=False),
74
  )
75
+ except Exception as err:
76
  gr.Warning(str(err))
77
  return (
78
  gr.update(value='Pre-submit model', visible=True, interactive=True),