maxfire2008 / iview-rss

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
2 years ago2 years old
Redefining name 'watchlist' from outer scope (line 118)
124    watchlist_resp = requests.get(
125        "https://api.seesaw.abc.net.au/v1/saved/watchlist/show?source=iview&slug=watchlist&raw=1&done=0&UID="+uid)
126    if watchlist_resp.status_code == 200:
127        watchlist = json.loads(watchlist_resp.content.decode())128        fg = FeedGenerator()
129        fg.id('https://iview-rss.maxstuff.net/watchlist/'+uid)
130        fg.title("iView Watchlist "+uid[:8])