Fix ValueError: invalid literal for int() with base 10: ''

This commit is contained in:
Frisk 2023-08-15 11:08:56 +02:00
parent 250db32c13
commit 0c53eb9d5c

View file

@ -15,7 +15,7 @@ logger = logging.getLogger("rcgcdb.domain_manager")
def safe_type_for_id(unsafe_id: str, target: Callable): def safe_type_for_id(unsafe_id: str, target: Callable):
if unsafe_id == "null": # TODO Verify if correct if unsafe_id == "null" or unsafe_id == "": # TODO Verify if correct
return None return None
return target(unsafe_id) return target(unsafe_id)