Skip to content

Commit

Permalink
banner.py: make default bool values strings
Browse files Browse the repository at this point in the history
If the options are not specified in the config file, then the values are taken from the defaults dict. Since strtobool is used, the values are expected to be strings.

Fixes SecurityCentral#4.
  • Loading branch information
kenyon authored and Zombie committed Jul 25, 2022
1 parent d952658 commit 6be8440
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions classification_banner/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ def configure(self):
defaults["font"] = "liberation-sans"
defaults["size"] = "small"
defaults["weight"] = "bold"
defaults["show_top"] = True
defaults["show_bottom"] = True
defaults["show_top"] = "True"
defaults["show_bottom"] = "True"
defaults["horizontal_resolution"] = 0
defaults["vertical_resolution"] = 0
defaults["sys_info"] = False
defaults["sys_info"] = "False"
defaults["opacity"] = 0.75
defaults["esc"] = True
defaults["spanning"] = False
defaults["esc"] = "True"
defaults["spanning"] = "False"

conf = SafeConfigParser()
conf.read(CONF_FILE)
Expand Down

0 comments on commit 6be8440

Please sign in to comment.