diff libervia/server/server.py @ 1369:b5f2565c4bac

server: don't check or connect service profile when `--build-only` is set
author Goffi <goffi@goffi.org>
date Fri, 20 Nov 2020 18:12:04 +0100
parents 9624c2a89a92
children 2d6cfce0df6c
line wrap: on
line diff
--- a/libervia/server/server.py	Fri Nov 20 18:04:05 2020 +0100
+++ b/libervia/server/server.py	Fri Nov 20 18:12:04 2020 +0100
@@ -1068,7 +1068,8 @@
             menu[site].extend(value)
 
         # service profile
-        await self.checkAndConnectServiceProfile()
+        if not self.options('build-only'):
+            await self.checkAndConnectServiceProfile()
 
         # restricted bridge, the one used by browser code
         self.restricted_bridge = RestrictedBridge(self)