fix: Allow name to be empty in local blocklist
This commit is contained in:
parent
a484a41b45
commit
58998e1c17
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user