From 60dd641e8f23806dc011dfdb108ac5f4ba4c46ab Mon Sep 17 00:00:00 2001 From: beerpiss Date: Tue, 17 Dec 2024 12:46:54 +0700 Subject: [PATCH] fix(sdvxin): check if difficulty is blank --- dbutils/sdvxin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbutils/sdvxin.py b/dbutils/sdvxin.py index e29388e..55b9b25 100644 --- a/dbutils/sdvxin.py +++ b/dbutils/sdvxin.py @@ -182,7 +182,7 @@ async def update_sdvxin( if ( match := WORLD_END_SDVXIN_REGEX.search(script_data) - ) is not None: + ) is not None and match.group("difficulty").strip(): level = match.group("difficulty").strip() elif ( match := WORLD_END_DIFFICULTY_REGEX.search(script_data)