Browse Source

..

pull/64/head
Mathias Markl 6 years ago
parent
commit
03ff2cdefc
  1. 2
      muk_web_export/__manifest__.py
  2. 7
      muk_web_export/controllers/main.py

2
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",

7
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
Loading…
Cancel
Save