# HG changeset patch # User Drew Perttula # Date 2013-06-04 23:52:27 # Node ID 9c8583cd14eaca5e78854be73a33b270c44a4a55 # Parent ae359590eb8aa6d483862e8325485b6cabff1c2f better error when network config is missing Ignore-this: 978b097cca2d8503fd065f89cf9877f6 diff --git a/light9/networking.py b/light9/networking.py --- a/light9/networking.py +++ b/light9/networking.py @@ -10,7 +10,10 @@ class ServiceAddress(object): def _url(self): graph = getGraph() net = graph.value(showUri(), L9['networking']) - return str(graph.value(net, self.service)) + ret = graph.value(net, self.service) + if ret is None: + raise ValueError("no url for %s %s" % (showUri(), L9['networking'])) + return str(ret) @property def port(self):