From 906f2094b8ca06248caa3c5b357d54d82e9273e0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 8 Jun 2020 02:47:10 +0200 Subject: [PATCH] Change error message --- __main__.py | 2 +- lihzahrd/world.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__main__.py b/__main__.py index 3eb4218..cc17518 100644 --- a/__main__.py +++ b/__main__.py @@ -4,4 +4,4 @@ from lihzahrd.timer import Timer with Timer("Parse sample world"): world = lihzahrd.World.create_from_file("The_Gateway_To_A_New_Future.wld") -breakpoint() +... diff --git a/lihzahrd/world.py b/lihzahrd/world.py index fe443aa..ef2e601 100644 --- a/lihzahrd/world.py +++ b/lihzahrd/world.py @@ -376,7 +376,7 @@ class World: savefile_type = f.uint1() supported_versions = (Version("1.4.0.4"), Version("1.4.0.5")) if version not in supported_versions or relogic != "relogic" or savefile_type != 2: - raise NotImplementedError("This parser can only read Terraria 1.4.0.4 save files.") + raise NotImplementedError("This parser can only read Terraria 1.4.0.4 or 1.4.0.5 save files.") revision = f.uint4() is_favorite = f.uint8() != 0