1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 22:44:30 +00:00

import rich, except ImportError s

This commit is contained in:
Dragorn421 2025-02-18 21:31:51 +01:00
parent c39fb7f1b8
commit e5cc601482
No known key found for this signature in database
GPG key ID: 381AEBAF3D429335
3 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ from typing import Callable, TypeVar, Generic
try:
from rich.pretty import pprint as rich_pprint
except ModuleNotFoundError:
except ImportError:
rich_pprint = print
from . import Resource, File, GetResourceAtResult

View file

@ -10,7 +10,7 @@ from typing import TYPE_CHECKING, Union, Optional, Callable
try:
from rich.pretty import pprint as rich_pprint
except ModuleNotFoundError:
except ImportError:
rich_pprint = print
import pygfxd

View file

@ -108,7 +108,7 @@ def process_pool(
import rich
rich.print(f"[b]{colls_str}[/b]")
except:
except ImportError:
print(colls_str)
file_by_rescoll: dict[ResourcesDescCollection, File] = dict()
@ -488,7 +488,7 @@ def main():
try:
import rich.pretty
import rich.console
except:
except ImportError:
traceback.print_exc(file=sys.stdout)
print("Install rich for prettier output (`pip install rich`)")
else: