diff --git a/legendary/lfs/lgndry.py b/legendary/lfs/lgndry.py index 8c59b2c..13cbaa2 100644 --- a/legendary/lfs/lgndry.py +++ b/legendary/lfs/lgndry.py @@ -37,6 +37,9 @@ class LGDLFS: # try loading config self.config.read(os.path.join(self.path, 'config.ini')) + # make sure "Legendary" section exists + if 'Legendary' not in self.config: + self.config['Legendary'] = dict() try: self._installed = json.load(open(os.path.join(self.path, 'installed.json')))