fixing a crash because a variable interfered witht the CMD module

This commit is contained in:
Lionel Dricot 2022-02-12 14:41:05 +01:00
parent 980ad72510
commit 15b7591424
1 changed files with 3 additions and 3 deletions

View File

@ -1257,7 +1257,7 @@ class GeminiClient(cmd.Cmd):
self.visited_hosts = set()
self.offline_only = False
self.sync_only = False
self.do_http = _DO_HTTP
self.support_http = _DO_HTTP
self.automatic_choice = "n"
self.client_certs = {
@ -1361,7 +1361,7 @@ class GeminiClient(cmd.Cmd):
elif not self.offline_only and not gi.local:
try:
if gi.scheme in ("http", "https"):
if self.do_http:
if self.support_http:
gi = self._fetch_http(gi)
elif handle and not self.sync_only:
if not _DO_HTTP:
@ -3083,7 +3083,7 @@ def main():
gc.cmdqueue.append("tour")
if args.disable_http:
gc.do_http = False
gc.support_http = False
# Endless interpret loop
if args.fetch_later: