fix nonetype

This commit is contained in:
Mylloon 2022-08-09 02:35:42 +02:00
parent f351e477e3
commit 8c57391b54
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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])