Skip to content

Commit 69b64f9

Browse files
authored
Merge pull request #40 from apple1417/master
add compat for calling pathname with null object
2 parents d11c55a + 130a4c6 commit 69b64f9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## v3.5 (Upcoming)
44

55
### Legacy Compat v1.4
6-
- Added more fixups for previously unreported issues in Loot Randomizer and Reign of Giants.
6+
- Added more fixups for previously unreported issues in Gear Randomizer, Loot Randomizer
7+
and Reign of Giants.
78

89
### Willow2 Mod Menu v3.4
910
- Fixed that some keybinds would not be displayed properly if there were two separate grouped/nested

src/legacy_compat/unrealsdk/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,9 @@ def _uobject_get_name(obj: UObject, /) -> str:
615615

616616

617617
@staticmethod
618-
def _uobject_path_name(obj: UObject, /) -> str:
618+
def _uobject_path_name(obj: UObject | None, /) -> str:
619+
if obj is None:
620+
return "None"
619621
return obj._path_name()
620622

621623

0 commit comments

Comments
 (0)