From 90a57b326e84a80d81f53ee1fd8620e3e2d7c35b Mon Sep 17 00:00:00 2001 From: Paolo Lazzaroni Date: Tue, 22 Oct 2019 19:02:37 +0200 Subject: [PATCH] Update youtube.py --- youtube.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube.py b/youtube.py index c61ad17..909b577 100644 --- a/youtube.py +++ b/youtube.py @@ -2,7 +2,10 @@ from os import path from random import randint from subprocess import call -from subprocess import getoutput as shell +try: + from subprocess import getoutput as shell +except ImportError: + from commands import getoutput as shell from sys import exit from threading import Thread from time import sleep