diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 58fb6a63a..365f94974 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -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