forked from solderpunk/AV-98
fix bug #11
This commit is contained in:
parent
2fd2479b53
commit
d14e1ba0a9
|
@ -12,6 +12,7 @@
|
|||
- Fix a crash were some HTML content is seen a bytes instead of a string
|
||||
- Fix a crash when displaying embedded CDATA html in feed. But #10 is still open.
|
||||
- Fix error handling assuming that requests is installed
|
||||
- Ugly fix for a rare certificate bug (fix #11)
|
||||
- Improve compatibility with python prior 3.9 by replacing a dict union
|
||||
|
||||
## 1.8 - December 11th 2022
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
# - Maeve Sproule <code@sprock.dev>
|
||||
|
||||
_VERSION = "1.8"
|
||||
|
||||
import argparse
|
||||
import cmd
|
||||
import codecs
|
||||
|
@ -2156,8 +2155,10 @@ class GeminiClient(cmd.Cmd):
|
|||
print("""set accept_bad_ssl_certificates True""")
|
||||
else:
|
||||
if print_error:
|
||||
import traceback
|
||||
print("ERROR4: " + str(type(err)) + " : " + str(err))
|
||||
print("\n" + str(err.with_traceback(None)))
|
||||
print(traceback.format_exc())
|
||||
return
|
||||
|
||||
# Pass file to handler, unless we were asked not to
|
||||
|
@ -2711,7 +2712,7 @@ class GeminiClient(cmd.Cmd):
|
|||
names = set(names)
|
||||
for name in names:
|
||||
try:
|
||||
ssl._dnsname_match(name, host)
|
||||
ssl._dnsname_match(str(name), host)
|
||||
break
|
||||
except CertificateError:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user