Skip to content

Commit 0d314d0

Browse files
committed
Fix null YDL_PYTHONPATH
1 parent fd3fc3f commit 0d314d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydl_server/ydlhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def reload_youtube_dl():
5858
importlib.reload(sys.modules[module])
5959

6060
def update():
61-
if app_config['YDL_PYTHONPATH']:
61+
if app_config.get('YDL_PYTHONPATH'):
6262
command = ["pip", "install", "--no-cache-dir", "-t", app_config['YDL_PYTHONPATH'], "--upgrade", "youtube-dlc"]
6363
else:
6464
command = ["pip", "install", "--no-cache-dir", "--upgrade", "youtube-dlc"]

0 commit comments

Comments
 (0)