Skip to content

Commit

Permalink
Handle Python that's aware of NPN, linked against OpenSSL that's not …
Browse files Browse the repository at this point in the history
…aware on NPN
  • Loading branch information
dimaqq committed Feb 6, 2019
1 parent 62090b6 commit 07d5a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aapns/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async def connect(
ssl_context.set_alpn_protocols(["h2"])
try:
ssl_context.set_npn_protocols(["h2"])
except AttributeError:
except (AttributeError, NotImplementedError):
pass
ssl_context.load_cert_chain(client_cert_path)
connector = Connector(
Expand Down

0 comments on commit 07d5a91

Please sign in to comment.