view roundup/anypy/ssl_.py @ 6689:994893cf3e1a

Fix traceback if an order attribute is None Fixes issue2551207.
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 30 May 2022 18:03:39 +0200
parents 3e8f2104753b
children 07ce4e4110f5
line wrap: on
line source

try:
    # Python 3+
    from ssl import SSLError
except (ImportError, AttributeError):
    # Python 2.5-2.7
    from socket import sslerror as SSLError

Roundup Issue Tracker: http://roundup-tracker.org/