fix nonetype
This commit is contained in:
parent
f351e477e3
commit
8c57391b54
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -352,7 +352,8 @@ def start():
|
|||
|
||||
if need_changes:
|
||||
# Clean old rules
|
||||
stream.delete_rules([rule.id for rule in old_rules])
|
||||
if old_rules:
|
||||
stream.delete_rules([rule.id for rule in old_rules])
|
||||
|
||||
# Add new rules
|
||||
stream.add_rules([StreamRule(rule) for rule in rules])
|
||||
|
|
Reference in a new issue