From 4dbf01a6042d78b10045ff18b3db21d88c0753cc Mon Sep 17 00:00:00 2001 From: Salad Dais Date: Wed, 5 Jul 2023 20:27:05 +0000 Subject: [PATCH] Blacklist new versions of recordclass --- hippolyzer/lib/client/object_manager.py | 6 +++++- setup.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hippolyzer/lib/client/object_manager.py b/hippolyzer/lib/client/object_manager.py index 477d9ea..801bb27 100644 --- a/hippolyzer/lib/client/object_manager.py +++ b/hippolyzer/lib/client/object_manager.py @@ -569,7 +569,11 @@ class ClientWorldObjectManager: def _run_object_update_hooks(self, obj: Object, updated_props: Set[str], update_type: ObjectUpdateType, msg: Optional[Message]): region_state = self._get_region_state(obj.RegionHandle) - region_state.resolve_futures(obj, update_type) + if region_state: + region_state.resolve_futures(obj, update_type) + else: + LOG.warning(f"{obj} not tied to a region state") + if obj.PCode == PCode.AVATAR and "NameValue" in updated_props: if obj.NameValue: self.name_cache.update(obj.FullID, obj.NameValue.to_dict()) diff --git a/setup.py b/setup.py index a1b1d5f..dcc2526 100644 --- a/setup.py +++ b/setup.py @@ -86,7 +86,8 @@ setup( 'outleap<1.0', 'defusedxml', 'aiohttp<4.0.0', - 'recordclass>0.15,<0.19', + # Newer recordclasses break! + 'recordclass>0.15,<0.18.3', 'lazy-object-proxy', 'arpeggio', # requests breaks with newer idna