From 71b00c20981eccf92ab7af0dc311543f077e327f Mon Sep 17 00:00:00 2001 From: jfriedli Date: Mon, 24 Jan 2022 19:43:12 +0000 Subject: Bugfix catch attribute errors and updated dependencies --- matweb/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matweb/frontend.py') diff --git a/matweb/frontend.py b/matweb/frontend.py index 395606f..018fc97 100644 --- a/matweb/frontend.py +++ b/matweb/frontend.py @@ -86,7 +86,7 @@ def upload_file(): download_uri=url_for('routes.download_file', key=key, secret=secret, filename=output_filename), meta_after=meta_after, ) - except (RuntimeError, ValueError): + except (RuntimeError, ValueError, AttributeError): flash('The type %s could not be cleaned' % mime) max_file_size = int(current_app.config['MAX_CONTENT_LENGTH'] / 1024 / 1024) -- cgit v1.3