Explorar o código

Use flup or flipflop in fcgi script

Guillaume Ayoub %!s(int64=12) %!d(string=hai) anos
pai
achega
152e5494d3
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      radicale.fcgi

+ 4 - 1
radicale.fcgi

@@ -24,7 +24,10 @@ Launch a Radicale FastCGI server according to configuration.
 
 """
 
-from flup.server.fcgi import WSGIServer
+try:
+    from flup.server.fcgi import WSGIServer
+except ImportError:
+    from flipflop import WSGIServer
 import radicale