From b67ec989dfcc21756cc976c52edc25735a3f0501 Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Wed, 23 Oct 2024 15:02:20 +0200 Subject: [PATCH] fix: Allow empty timeout_at env variable (#303) - closes https://github.com/apify/crawlee-python/issues/596 --- src/apify/_configuration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apify/_configuration.py b/src/apify/_configuration.py index 685cc53a..ab249284 100644 --- a/src/apify/_configuration.py +++ b/src/apify/_configuration.py @@ -251,6 +251,7 @@ class Configuration(CrawleeConfiguration): ), description='Date when the Actor will time out', ), + BeforeValidator(lambda val: val if val != '' else None), # We should accept empty environment variables as well ] = None standby_port: Annotated[