mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-23 12:15:16 +00:00
node.py: multi-class exception calls need parentheses
This commit is contained in:
parent
7124f94461
commit
d1d7cdd859
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user