From 64802494acb68363411a3bb5e97ab5eff5fdbeb7 Mon Sep 17 00:00:00 2001 From: Shane Israel Date: Wed, 27 Dec 2023 17:21:05 -0700 Subject: [PATCH] default to 0 if thumbnail_video_location is not set --- app/server/fireshare/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/fireshare/__init__.py b/app/server/fireshare/__init__.py index 02dba10..794115e 100644 --- a/app/server/fireshare/__init__.py +++ b/app/server/fireshare/__init__.py @@ -62,7 +62,7 @@ def create_app(init_schedule=False): raise Exception("DATA_DIRECTORY not found in environment") app.config['ENVIRONMENT'] = os.getenv('ENVIRONMENT') - app.config['THUMBNAIL_VIDEO_LOCATION'] = int(os.getenv('THUMBNAIL_VIDEO_LOCATION')) + app.config['THUMBNAIL_VIDEO_LOCATION'] = int(os.getenv('THUMBNAIL_VIDEO_LOCATION') or 0) app.config['SECRET_KEY'] = os.getenv('SECRET_KEY', secrets.token_hex(32)) app.config['DATA_DIRECTORY'] = os.getenv('DATA_DIRECTORY') app.config['VIDEO_DIRECTORY'] = os.getenv('VIDEO_DIRECTORY')