mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 16:08:13 +08:00
Fix error handling in plugin module (#1645)
This commit is contained in:
+8
-1
@@ -1,6 +1,13 @@
|
||||
from server.common.utils import import_plugins
|
||||
import logging
|
||||
import sys
|
||||
|
||||
__version__ = "0.15.0"
|
||||
display_version = "cellxgene v" + __version__
|
||||
|
||||
import_plugins("server.plugins")
|
||||
try:
|
||||
import_plugins("server.plugins")
|
||||
except Exception as e:
|
||||
# Make sure to exit in this case, as the server may not be configured as expected.
|
||||
logging.critical(f"Error in import_plugins: {str(e)}")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user