From 85f03a6d410295e1a59c6a8b579a32d9dbfe50ea Mon Sep 17 00:00:00 2001 From: ssstvinc2 Date: Thu, 23 Mar 2017 15:46:10 -0400 Subject: Fixed H1 parsing for None types. Should resolve further crashes. --- parser.py | 1 - unbiasedFunctions.py | 15 +++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/parser.py b/parser.py index 671e2e5..19333e8 100755 --- a/parser.py +++ b/parser.py @@ -208,7 +208,6 @@ def buildGuardian(): h1=h1.split('0: + if x not in h1RandomSources: + h1RandomSources.append(x) + else: + print('\n\n@@@@\nNo H1 stories in '+newsSourceArr[x].name+'\n@@@@\n\n') #For h2s and h3s, select N random sources (can repeat), then #a non-repetitive random article from within -- cgit v1.2.3