Permalink
Browse files

Improved coverage and added FR translation.

  • Loading branch information...
tonioo committed Nov 20, 2018
1 parent f4976bb commit 2101adff1b4246e4a1271195384df412ce186e88
@@ -50,7 +50,7 @@ before_script:
script:
- python ./tests.py
- cd test_project
- coverage run --source ../modoboa manage.py test modoboa.core modoboa.lib modoboa.admin modoboa.limits modoboa.transport modoboa.relaydomains
- coverage run --source ../modoboa manage.py test modoboa.core modoboa.lib modoboa.admin modoboa.limits modoboa.transport modoboa.relaydomains modoboa.dnstools
after_success:
- coverage xml
@@ -192,7 +192,10 @@ def get_dns_records(name, typ, resolver=None):
except dns.resolver.NXDOMAIN as e:
logger.error(_("No DNS record found for %s") % name, exc_info=e)
except dns.resolver.NoAnswer as e:
logger.error(_("No %s record for %s") % (typ, name), exc_info=e)
logger.error(
_("No %(type)s record for %(name)s") % {"type": typ, "name": name},
exc_info=e
)
except dns.resolver.NoNameservers as e:
logger.error(_("No working name servers found"), exc_info=e)
except dns.resolver.Timeout as e:
Oops, something went wrong.

0 comments on commit 2101adf

Please sign in to comment.