Skip to content

Commit 6a8fa6d

Browse files
authored
Merge pull request #238 from ShaneIsrael/fix-none-type-error
default to 0 if thumbnail_video_location is not set
2 parents 3bcdc0d + 6480249 commit 6a8fa6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/fireshare/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def create_app(init_schedule=False):
6262
raise Exception("DATA_DIRECTORY not found in environment")
6363

6464
app.config['ENVIRONMENT'] = os.getenv('ENVIRONMENT')
65-
app.config['THUMBNAIL_VIDEO_LOCATION'] = int(os.getenv('THUMBNAIL_VIDEO_LOCATION'))
65+
app.config['THUMBNAIL_VIDEO_LOCATION'] = int(os.getenv('THUMBNAIL_VIDEO_LOCATION') or 0)
6666
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY', secrets.token_hex(32))
6767
app.config['DATA_DIRECTORY'] = os.getenv('DATA_DIRECTORY')
6868
app.config['VIDEO_DIRECTORY'] = os.getenv('VIDEO_DIRECTORY')

0 commit comments

Comments
 (0)