node.py: multi-class exception calls need parentheses

This commit is contained in:
Brian Warner 2007-05-31 18:32:21 -07:00
parent 7124f94461
commit d1d7cdd859

View File

@ -43,7 +43,7 @@ class Node(service.MultiService):
self._portnumfile = os.path.join(self.basedir, self.PORTNUMFILE)
try:
portnum = int(open(self._portnumfile, "rU").read())
except EnvironmentError, ValueError:
except (EnvironmentError, ValueError):
portnum = 0
self.tub.listenOn("tcp:%d" % portnum)
# we must wait until our service has started before we can find out