Skip to content

Commit

Permalink
fix ValueError: invalid literal for int() with base 10: ''
Browse files Browse the repository at this point in the history
  • Loading branch information
odysseusmax committed Jul 31, 2020
1 parent d3211e3 commit e4da10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Config:

VIDEO_DESCRIPTION = os.environ.get("VIDEO_DESCRIPTION", '').replace('<', '').replace('>', '')

VIDEO_CATEGORY = int(os.environ.get("VIDEO_CATEGORY", 0))
VIDEO_CATEGORY = int(os.environ.get("VIDEO_CATEGORY")) if os.environ.get("VIDEO_CATEGORY") else 0

VIDEO_TITLE_PREFIX = os.environ.get("VIDEO_TITLE_PREFIX", '')

Expand Down

0 comments on commit e4da10e

Please sign in to comment.