From: Brian Warner Date: Fri, 1 Jun 2007 01:32:21 +0000 (-0700) Subject: node.py: multi-class exception calls need parentheses X-Git-Tag: allmydata-tahoe-0.3.0~41 X-Git-Url: https://git.rkrishnan.org/class-simplejson.JSONEncoder.html?a=commitdiff_plain;h=d1d7cdd8593aa8bf4b8b3adbdd621577b93ceb90;p=tahoe-lafs%2Ftahoe-lafs.git node.py: multi-class exception calls need parentheses --- diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 58fb6a63..365f9497 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