Changeset - 9c8583cd14ea
[Not reviewed]
default
0 1 0
Drew Perttula - 12 years ago 2013-06-04 23:52:27
drewp@bigasterisk.com
better error when network config is missing
Ignore-this: 978b097cca2d8503fd065f89cf9877f6
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/networking.py
Show inline comments
 
@@ -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):
0 comments (0 inline, 0 general)