fix type check as per pull request comment

master
Dmytro Makovey 7 years ago
parent d4cf5430e8
commit 5e55182b90

@ -98,7 +98,7 @@ def config_update(verbose=False, delete_objects=False):
localpart=alias_config['localpart'] localpart=alias_config['localpart']
domain_name=alias_config['domain'] domain_name=alias_config['domain']
pre_destination=alias_config['destination'] pre_destination=alias_config['destination']
if type(pre_destination) == type(""): if type(pre_destination) is str:
destination = pre_destination.split(',') destination = pre_destination.split(',')
else: else:
destination = pre_destination destination = pre_destination

Loading…
Cancel
Save