Skip to content

Commit

Permalink
ns-api: threatshield, fix syntax
Browse files Browse the repository at this point in the history
Regression introduced by 4dc687a
  • Loading branch information
gsanchietti committed May 21, 2024
1 parent 4dc687a commit 6d89245
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ns-api/files/ns.threatshield
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ def edit_blocklist(e_uci, payload):
def set_default(e_uci, option, value):
try:
e_uci.get('banip', 'global', option)
pass:
except:
e_uci.set('banip', 'global', option, value)


def edit_settings(e_uci, payload):
if payload['enabled']:
e_uci.set('banip', 'global', 'ban_enabled', '1')
Expand Down

0 comments on commit 6d89245

Please sign in to comment.