From 0e3327e0f822278b14d69ff0a80c13ca223da923 Mon Sep 17 00:00:00 2001 From: Bonta-kun <40473493+Bonta0@users.noreply.github.com> Date: Sat, 28 Dec 2019 01:11:44 +0100 Subject: [PATCH] logging: fix retry attempts nr --- ItemList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ItemList.py b/ItemList.py index 18035e12..4d389a95 100644 --- a/ItemList.py +++ b/ItemList.py @@ -339,7 +339,7 @@ def fill_prizes(world, attempts=15): random.shuffle(prize_locs) fill_restrictive(world, all_state, prize_locs, prizepool, True) except FillError as e: - logging.getLogger('').info("Failed to place dungeon prizes (%s). Will retry %s more times", e, attempts) + logging.getLogger('').info("Failed to place dungeon prizes (%s). Will retry %s more times", e, attempts - attempt - 1) for location in empty_crystal_locations: location.item = None continue