Permalink
Browse files

Small fix to get saving the config file working properly in some cases

  • Loading branch information...
davekeogh committed Sep 7, 2009
1 parent 80259fd commit 94bd8054dbae2b2347d890013cb82a423dee73fc
Showing with 3 additions and 0 deletions.
  1. +3 −0 reddit_monitor
View
@@ -216,6 +216,9 @@ class Application(object):
if os.path.exists(config_file):
os.remove(config_file)
+ if not self.config:
+ self.config = ConfigParser.SafeConfigParser()
+
if not self.config.has_section('Reddit_Monitor'):
self.config.add_section('Reddit_Monitor')

0 comments on commit 94bd805

Please sign in to comment.