mirror of https://github.com/zeldaret/tp.git
tp.py: fix exception handler
This commit is contained in:
parent
7343cc7d3f
commit
3a1282dd71
|
@ -317,7 +317,7 @@ def setup(debug: bool, game_path: Path, tools_path: Path):
|
||||||
os.chdir(str(game_path.absolute()))
|
os.chdir(str(game_path.absolute()))
|
||||||
extract_game_assets.extract("../" + str(iso))
|
extract_game_assets.extract("../" + str(iso))
|
||||||
os.chdir(previous_dir)
|
os.chdir(previous_dir)
|
||||||
except e as Exception:
|
except Exception as e:
|
||||||
LOG.error(f"failure:")
|
LOG.error(f"failure:")
|
||||||
LOG.error(e)
|
LOG.error(e)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue