Skip to content

Commit

Permalink
Fix get_steamid_from_asset None issue
Browse files Browse the repository at this point in the history
  • Loading branch information
REDxEYE committed Nov 18, 2024
1 parent c2b16ef commit 7ebb8d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/shared/content_manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def get_provider_from_path(self, filepath):
def get_steamid_from_asset(self, asset_path: TinyPath) -> ContentProvider | None:
if asset_path.is_absolute():
asset_path = self.get_relative_path(asset_path)
if asset_path is None:
return None
for child in self.children:
if provider := child.get_steamid_from_asset(asset_path):
return provider
Expand Down

0 comments on commit 7ebb8d8

Please sign in to comment.