commit 0c956d19ba6f9d2b84509837c040d290b0b47c46
parent 3c49b7042ccc63c7da80034dca7e568a425aa86a
Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 28 Oct 2015 07:14:51 +0100
There is a case where rcode could be accessed befor it's assigned.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/zs b/zs
@@ -49,6 +49,7 @@ def run(db, selfeed=None, dryrun=False, onlychanges=False):
if onlychanges != True:
print("fetch %s" % (feeduri))
curfeed = None
+ rcode = 0
try:
(rcode, curfeed) = feed.fetch(feeduri)
except socket.gaierror: