Skip to content

Commit fde87ba

Browse files
committed
ensure category non-empty before appending to it
1 parent fa569f2 commit fde87ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ManualClient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def update_hints(self):
307307
if hint["finding_player"] == self.ctx.slot:
308308
if hint["location"] in self.ctx.missing_locations:
309309
location = self.ctx.get_location_by_id(hint["location"])
310+
location["category"] = location.get("category", [])
310311
if "(Hinted)" not in location["category"]:
311312
location["category"].append("(Hinted)")
312313
rebuild = True

0 commit comments

Comments
 (0)