fix: Allow name to be empty in local blocklist

This commit is contained in:
moanos [he/him] 2023-01-25 23:35:04 +01:00
parent a484a41b45
commit 58998e1c17

View File

@ -38,7 +38,10 @@ class Instance:
self.reject_reports = instance_dict["reject_reports"]
def parse_local_block(self, instance_dict):
self.name = instance_dict["name"]
try:
self.name = instance_dict["name"]
except KeyError:
pass
self.domain = instance_dict["domain"]
self.severity = instance_dict["severity"]
self.public_comment = instance_dict["public_comment"]