email-mirror-postfix: Fix mypy errors.

This commit is contained in:
Tim Abbott 2017-06-01 22:51:26 -07:00
parent e510c5d15a
commit 9e0749ad82
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ import posix
import json
from six.moves.urllib.parse import urljoin, urlencode
from six.moves.urllib.request import Request, urlopen # type: ignore # six.moves.urllib.request
from six.moves.urllib.request import Request, urlopen
from six.moves.urllib.error import HTTPError
from six.moves.configparser import RawConfigParser
from six import text_type
@ -133,7 +133,7 @@ def send_email_mirror(rcpt_to, shared_secret, host, url, test, verify_ssl):
"secret": shared_secret}
req = Request(url=urljoin(host, url), data=urlencode(data).encode('utf8'))
try:
urlopen(req, **request_context)
urlopen(req, **request_context) # type: ignore # six.moves.urllib.request
except HTTPError as err:
process_response_error(err)