Skip to content

Commit

Permalink
Merge pull request #238 from ShaneIsrael/fix-none-type-error
Browse files Browse the repository at this point in the history
default to 0 if thumbnail_video_location is not set
  • Loading branch information
ShaneIsrael authored Dec 28, 2023
2 parents 3bcdc0d + 6480249 commit 6a8fa6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/fireshare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6a8fa6d

Please sign in to comment.