fix python2-ism

master
Dmytro Makovey 7 years ago
parent c9f124c9b9
commit a6944582a3

@ -130,7 +130,7 @@ def config_update(verbose=False, delete_objects=False):
email='{0}@{1}'.format(localpart,domain_name) email='{0}@{1}'.format(localpart,domain_name)
optional_params={} optional_params={}
for k in user_optional_params: for k in user_optional_params:
if user_config.has_key(k): if k in user_config:
optional_params[k]=user_config[k] optional_params[k]=user_config[k]
if not domain: if not domain:
domain = models.Domain(name=domain_name) domain = models.Domain(name=domain_name)

Loading…
Cancel
Save