Closed toconnell closed 10 months ago
Fixed:
diff --git a/app/models/settlements/_settlement.py b/app/models/settlements/_settlement.py
index 32c5692..a9ed89f 100644
--- a/app/models/settlements/_settlement.py
+++ b/app/models/settlements/_settlement.py
@@ -1169,7 +1169,7 @@ class Settlement(UserAsset):
'created_on': datetime.now(),
'handle': monst_obj.handle,
'name': monst_obj.name,
- 'type': monst_obj.type,
+ 'type': monst_obj.asset.get('type', None),
'raw_name': monster_string,
}
for a in ['comment', 'level']:
@@ -1185,7 +1185,7 @@ class Settlement(UserAsset):
msg % (
flask.request.User,
monster_string,
- monst_obj.type,
+ monst_obj.asset.get('type', None),
self.get_current_ly()
)
)
Pushing this as a hotfix, since its application-breaking.