Skip to content

Commit

Permalink
[safety] Properly add the section in configure()
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Alfassa committed Sep 7, 2014
1 parent 5943fc7 commit 05b562b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def configure(config):
| vt_api_key | ea4ca709a686edfcc96a144c224935776e2ba46b77 | VirusTotal API key |
"""
if config.option('Configure malicious URL protection'):
config.add_section('safety')
config.add_option('safety', 'enabled_by_default', 'Enable malicious URL checking for channels by default?', True)
config.interactive_add('safety', 'vt_api_key', 'VirusTotal API Key (not mandatory)', None)

Expand Down

0 comments on commit 05b562b

Please sign in to comment.