From 490bcd52356a5f4150625650d8e9265bfbcd4a22 Mon Sep 17 00:00:00 2001 From: Tanner Date: Thu, 25 Jun 2020 23:37:11 +0000 Subject: [PATCH] Fall back to ref on manual submission title --- apiserver/feeds/manual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/feeds/manual.py b/apiserver/feeds/manual.py index fef3cd0..d145df4 100644 --- a/apiserver/feeds/manual.py +++ b/apiserver/feeds/manual.py @@ -33,7 +33,7 @@ def story(ref): s['author_link'] = 'https://news.t0.vc' s['score'] = 0 s['date'] = int(time.time()) - s['title'] = str(soup.title.string) + s['title'] = str(soup.title.string) if soup.title else ref s['link'] = ref s['url'] = ref s['comments'] = []