Ginés Martínez Sánchez avatar Ginés Martínez Sánchez committed 0f2ffbb Draft

Added warning

Comments (0)

Files changed (1)

ginsfsm/globals.py

 """
 import atexit
 import threading
-
+import logging
 
 _global_apps = {}
 """ _global_apps is a dictionary with the wsgi applications
     if thread_ident is None:
         thread_ident = threading.current_thread().ident
     global_main_gaplic = get_global_main_gaplic()
+    if global_main_gaplic is None:
+        logging.error(
+            "ERROR global main gaplic is NOT SET. "
+            "Have you called set_global_main_gaplic()?."
+        )
+        raise Exception('ERROR global main gaplic not set.')
     if global_main_gaplic.thread_ident == thread_ident:
         return global_main_gaplic
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.