diff options
| author | Saghm Rossi <git@saghm.com> | 2026-05-14 21:14:37 -0400 |
|---|---|---|
| committer | Saghm Rossi <git@saghm.com> | 2026-05-14 21:18:34 -0400 |
| commit | fce34782ae99291a5ffe520266db34e9d9c6a67d (patch) | |
| tree | aef7a86dd519d9a8391cb6488c64f1e772c434cd | |
| parent | 2d9e7607f38ac77d7cc66946b3afa25d2b4da356 (diff) | |
skip log warning when parsing packed loose files
| -rw-r--r-- | libs/basic_games/games/baldursgate3/pak_parser.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/libs/basic_games/games/baldursgate3/pak_parser.py b/libs/basic_games/games/baldursgate3/pak_parser.py index fab4c89..be1bfa3 100644 --- a/libs/basic_games/games/baldursgate3/pak_parser.py +++ b/libs/basic_games/games/baldursgate3/pak_parser.py @@ -132,12 +132,19 @@ class BG3PakParser: pak_path.unlink(missing_ok=True) larian_formats.pack_loose_files(file, pak_path) - return self.metadata_to_ini( - config, - pak_path, - mod, - meta_ini, - ) + output = "" + + try: + output = self.metadata_to_ini( + config, + pak_path, + mod, + meta_ini, + ) + except: + pass + + return output else: return "" except Exception: |
