Skip to content

Commit

Permalink
Merge pull request sahib#190 from BrunoVernay/patch-2
Browse files Browse the repository at this point in the history
Test for None
  • Loading branch information
sahib committed Sep 12, 2016
2 parents a043014 + f000b91 commit 185c12e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/shredder/views/settings.py
Expand Up @@ -235,8 +235,8 @@ def append_entry(self, section, val_widget, key_name, summary, desc=None):
listbox.insert(row, -1)

self.metadata[section.lower()][key_name] = {
'summary': summary.lower() or '',
'description': desc.lower() or '',
'summary': '' if summary is None else summary.lower(),
'description': '' if desc is None else desc.lower(),
'widget': row
}

Expand Down

0 comments on commit 185c12e

Please sign in to comment.