Add clownflare error. - gopherbay - piratebay gopher interface
(HTM) git clone git://bitreich.org/gopherbay git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopherbay
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 811b446574ec4893fcba994b3c846692a66fed6e
(DIR) parent 620bb36798ec15cd98d38ba8e4392e9c4a480dcd
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 11 Jan 2026 19:07:32 +0100
Add clownflare error.
Diffstat:
M index.dcgi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/index.dcgi b/index.dcgi
@@ -186,7 +186,6 @@ def main(args):
gph = logo()
gph += "= search results =\n"
for r in results:
- print(r)
gph += "[h|= %s|%s|server|port]\n" \
% (name2gph(r["name"]),\
magnet_link(r["info_hash"], r["name"]))
@@ -220,7 +219,10 @@ def main(args):
results = search(g_search)
else:
results = search()
- gph = search2gph(results)
+ try:
+ gph = search2gph(results)
+ except TypeError:
+ gph = "[3|We got hit by clownflare.||server|port]\n"
else:
gph = "[3|Not found.||server|port]\n"