mirror of https://github.com/zulip/zulip.git
email-mirror-postfix: Fix mypy errors.
This commit is contained in:
parent
e510c5d15a
commit
9e0749ad82
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue