developer28 commited on
Commit
a074dd1
·
verified ·
1 Parent(s): b1ebca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -615,7 +615,9 @@ class YouTubeDownloader:
615
  "Please check if it's private, deleted, age-restricted, or try again with a valid cookies.txt file."
616
  )
617
  elif "cookies" in error_msg.lower():
618
- return None, f"❌ Error: {str(e)}"
 
 
619
 
620
 
621
  def download_video(self, url, quality="best", audio_only=False, progress=gr.Progress(), cookiefile=None):
 
615
  "Please check if it's private, deleted, age-restricted, or try again with a valid cookies.txt file."
616
  )
617
  elif "cookies" in error_msg.lower():
618
+ return None, f"❌ Error: {error_msg}"
619
+ else:
620
+ return None,f"❌ Unexpected error: {error_msg}"
621
 
622
 
623
  def download_video(self, url, quality="best", audio_only=False, progress=gr.Progress(), cookiefile=None):