[mod] use logger instead of print, a bit better bot not perfect

This commit is contained in:
Laurent Peuch 2016-12-02 23:23:16 +01:00 committed by Alexandre Aubin
parent c468a69754
commit c763b74fea

View file

@ -159,7 +159,7 @@ def tools_maindomain(auth, new_domain=None):
_set_maindomain(new_domain) _set_maindomain(new_domain)
except Exception as e: except Exception as e:
print e logger.warning("%s" % e, exc_info=1)
raise MoulinetteError(errno.EPERM, m18n.n('maindomain_change_failed')) raise MoulinetteError(errno.EPERM, m18n.n('maindomain_change_failed'))
# Regen configurations # Regen configurations