Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def process_youtube():
|
|
| 139 |
try:
|
| 140 |
# Fetch transcript
|
| 141 |
transcript_data = YouTubeTranscriptApi.get_transcript(video_id)
|
| 142 |
-
except
|
| 143 |
logging.error(f"Error fetching transcript for {video_id}: {e}")
|
| 144 |
return jsonify({"error": f"Could not retrieve transcript for video {video_id}: {str(e)}"}), 500
|
| 145 |
|
|
|
|
| 139 |
try:
|
| 140 |
# Fetch transcript
|
| 141 |
transcript_data = YouTubeTranscriptApi.get_transcript(video_id)
|
| 142 |
+
except Exception as e:
|
| 143 |
logging.error(f"Error fetching transcript for {video_id}: {e}")
|
| 144 |
return jsonify({"error": f"Could not retrieve transcript for video {video_id}: {str(e)}"}), 500
|
| 145 |
|