From dbc0f2da9d0868c18c7a1ee2837f2e8ebc47b0f0 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 21 May 2012 04:15:39 +0200 Subject: [PATCH] Skip thread URL when 404ing instead of exiting the script altogether --- 4c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4c b/4c index 7e8e745..01c9c21 100755 --- a/4c +++ b/4c @@ -26,10 +26,10 @@ for url in options['urllist']: page = urllib2.urlopen(url).read() except ValueError: print "That does not look like a valid URL." - exit(1) + continue except urllib2.HTTPError: print "The given URL returns a HTTP 404 status code - the thread may have died." - exit(1) + continue if options['newdir'] == True: thread_id = url.split('/')[-1]