tDon't explode if no data returned. - gopherbay - A Gopher interface to The Pirate Bay HTML git clone https://git.parazyd.org/gopherbay DIR Log DIR Files DIR Refs DIR README --- DIR commit b90d9097ceffc36dc1381b86c24da8d3bfe39eed DIR parent e8881ee73c40ae137ecb50a3430e15ca62ff04d2 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 11 Nov 2020 21:30:49 +0100 Don't explode if no data returned. Diffstat: M q.dcgi | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/q.dcgi b/q.dcgi t@@ -124,6 +124,10 @@ def q(_argv): else: data = httpget(server + "/q.php?q=" + quote(query)) + if not data: + print("Internal error") + return + jsondata = loads(data) print()