Skip to content

Commit

Permalink
Fix null YDL_PYTHONPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mvnural committed Nov 5, 2020
1 parent fd3fc3f commit 0d314d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydl_server/ydlhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def reload_youtube_dl():
importlib.reload(sys.modules[module])

def update():
if app_config['YDL_PYTHONPATH']:
if app_config.get('YDL_PYTHONPATH'):
command = ["pip", "install", "--no-cache-dir", "-t", app_config['YDL_PYTHONPATH'], "--upgrade", "youtube-dlc"]
else:
command = ["pip", "install", "--no-cache-dir", "--upgrade", "youtube-dlc"]
Expand Down

0 comments on commit 0d314d0

Please sign in to comment.