Skip to content

Commit

Permalink
Fix profile saving unsupported options
Browse files Browse the repository at this point in the history
  • Loading branch information
mitaa authored and berarma committed Sep 6, 2020
1 parent 3a021af commit d257e70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oversteer/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ class Profile:
def __init__(self, data = None):
self.config = configparser.ConfigParser()
if data is not None:
self.import_settings(data)
self.import_settings(dict(filter(
lambda item: item[1] is not None,
data.items()
)))

def load(self, profile_file):
self.config = configparser.ConfigParser()
Expand Down

0 comments on commit d257e70

Please sign in to comment.