disambiguate types returned by get_fd_or_server
This commit is contained in:
@@ -48,12 +48,12 @@ def get_fd_or_server(config):
|
||||
lockfile = get_lockfile(config)
|
||||
while True:
|
||||
try:
|
||||
return os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY)
|
||||
return os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY), None
|
||||
except OSError:
|
||||
pass
|
||||
server = get_server(config)
|
||||
if server is not None:
|
||||
return server
|
||||
return None, server
|
||||
# Couldn't connect; remove lockfile and try again.
|
||||
remove_lockfile(lockfile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user