Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Update for changes in ConfigParser api.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsomething authored and jlu5 committed Dec 24, 2017
1 parent c710f48 commit e1cd796
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kazam/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ def find_default(self, section, key):
if d_key == key:
return d_section["keys"][key]

def get(self, section, key):
def get(self, section, key, raw=True, fallback=None):
try:
return ConfigParser.get(self, section, key)
return super(KazamConfig, self).get(section,
key, raw=True, fallback=fallback)
except NoSectionError:
default = self.find_default(section, key)
self.set(section, key, default)
Expand Down

0 comments on commit e1cd796

Please sign in to comment.