Skip to content

Commit

Permalink
Move assignments outside of the try block
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 19, 2018
1 parent 2248a10 commit aa08223
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zope/server/serverbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ def __init__(self, ip, port, task_dispatcher=None, adj=None, start=1,
asyncore.dispatcher.__init__(self)
self.port = port
self.task_dispatcher = task_dispatcher
self.verbose = verbose
self.hit_log = hit_log
self.logger = logging.getLogger(self.__class__.__name__)
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
try:
self.set_reuse_addr()
self.bind((ip, port))
self.verbose = verbose
self.hit_log = hit_log
self.logger = logging.getLogger(self.__class__.__name__)
self.server_name = self.computeServerName(ip)

if start:
Expand Down

0 comments on commit aa08223

Please sign in to comment.