Remove version check for server
This commit is contained in:
parent
30f07c076f
commit
420c02a0fa
@ -487,11 +487,8 @@ def main():
|
|||||||
if not options.users and not options.all_users:
|
if not options.users and not options.all_users:
|
||||||
print('There are no users specified. Use "--all-users" to run for all users')
|
print('There are no users specified. Use "--all-users" to run for all users')
|
||||||
sys.exit(1)
|
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)
|
||||||
server = kopano.server(options)
|
|
||||||
else:
|
|
||||||
server = kopano.Server(options)
|
|
||||||
|
|
||||||
for user in server.users(options.users):
|
for user in server.users(options.users):
|
||||||
# Backup and restore
|
# Backup and restore
|
||||||
|
Loading…
Reference in New Issue
Block a user