From d1d7cdd8593aa8bf4b8b3adbdd621577b93ceb90 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 31 May 2007 18:32:21 -0700 Subject: [PATCH] node.py: multi-class exception calls need parentheses --- src/allmydata/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2