Remove version check for server

This commit is contained in:
Martijn Alberts 2019-05-23 18:13:47 +02:00
parent 30f07c076f
commit 420c02a0fa

View File

@ -487,10 +487,7 @@ def main():
if not options.users and not options.all_users:
print('There are no users specified. Use "--all-users" to run for all users')
sys.exit(1)
# Since kopano 8.7.0 Server is renamed to server check with one we need to use
if parse_version(kopano.__version__) > parse_version('8.7.0'):
server = kopano.server(options)
else:
server = kopano.Server(options)
for user in server.users(options.users):