From 03ff2cdefc765b53019b6342093f0341ff718ac5 Mon Sep 17 00:00:00 2001 From: Mathias Markl Date: Fri, 13 Jul 2018 13:52:48 +0200 Subject: [PATCH] .. --- muk_web_export/__manifest__.py | 2 +- muk_web_export/controllers/main.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/muk_web_export/__manifest__.py b/muk_web_export/__manifest__.py index 4d316ff..7fe3965 100644 --- a/muk_web_export/__manifest__.py +++ b/muk_web_export/__manifest__.py @@ -20,7 +20,7 @@ { "name": "MuK Export", "summary": """File Export Dialog""", - "version": "11.0.1.0.1", + "version": "11.0.1.0.2", "category": "Extra Tools", "license": "AGPL-3", "website": "http://www.mukit.at", diff --git a/muk_web_export/controllers/main.py b/muk_web_export/controllers/main.py index 9f07675..b957c11 100644 --- a/muk_web_export/controllers/main.py +++ b/muk_web_export/controllers/main.py @@ -39,7 +39,10 @@ class ExportController(http.Controller): @http.route('/web/check_export', type='json', auth="user") def check_export(self, filename, **kw): - if os.path.splitext(filename)[1][1:].strip().lower() in converter.imports(): - return True + try: + if os.path.splitext(filename)[1][1:].strip().lower() in converter.imports(): + return True + except Exception: + return False return False \ No newline at end of file