Skip to content
Snippets Groups Projects
Commit 27716742 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

httpinterface.py: ensure service_publisher.commit() is called only if it was instantiated

parent 3fcf9f8b
No related branches found
No related tags found
1 merge request!15Make service discovery optional
......@@ -146,7 +146,8 @@ class HTTPServers(list):
self.append((httpd, service))
if not self:
raise ValueError("unable to start servers%s" % (" on port %d" % port if port != 0 else ""))
self.service_publisher.commit()
if servicediscovery and self.service_publisher:
self.service_publisher.commit()
def __del__(self):
if self.verbose:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment