kopia lustrzana https://github.com/simonw/datasette
ImportError too
rodzic
f5f06b54f7
commit
1dc7e4145a
|
@ -1308,8 +1308,8 @@ class Datasette:
|
|||
modpath = '/-/static-plugins/{}/'.format(plugin_module.__name__)
|
||||
dirpath = pkg_resources.resource_filename(plugin_module.__name__, 'static')
|
||||
app.static(modpath, dirpath)
|
||||
except (ModuleNotFoundError, KeyError):
|
||||
# Caused by --plugins_dir= plugins - KeyError thrown in Py3.5
|
||||
except (ModuleNotFoundError, KeyError, ImportError):
|
||||
# Caused by --plugins_dir= plugins - KeyError/ImportError thrown in Py3.5
|
||||
pass
|
||||
app.add_route(
|
||||
DatabaseView.as_view(self),
|
||||
|
|
Ładowanie…
Reference in New Issue