From e02c1e255b18cd8ca2e366c52f7508a71cae8fff Mon Sep 17 00:00:00 2001 From: Shadow15510 Date: Sun, 14 Nov 2021 16:07:11 +0100 Subject: [PATCH] Add gestion of None type event --- asci_lib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/asci_lib.py b/asci_lib.py index 894a9b7..d636022 100644 --- a/asci_lib.py +++ b/asci_lib.py @@ -137,6 +137,7 @@ class Asci: # Get the event event = self._game_events_mapping[cell_content](data_copy, self.stat) + if not event: return event = read_event(self.data[0], event) # data modification