From b9d92fb8467a0b383b7c7b8a19c163c8e5567268 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 13 Jun 2013 13:50:31 +0200 Subject: [PATCH] Avoid using global variable that wasn't intended to be global --- synctwitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synctwitter.py b/synctwitter.py index 230f877..206e94e 100755 --- a/synctwitter.py +++ b/synctwitter.py @@ -18,7 +18,7 @@ class SyncTwitter(TwitterClient): TwitterClient.__init__(self, cfg) psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) - self.db = psycopg2.connect(c.get('planet','db')) + self.db = psycopg2.connect(cfg.get('planet','db')) def Run(self): # Get list of handles that should be on the list -- 2.39.5