aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/comments.py')
-rw-r--r--youtube/comments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/comments.py b/youtube/comments.py
index 54baf61..8eec789 100644
--- a/youtube/comments.py
+++ b/youtube/comments.py
@@ -192,10 +192,10 @@ def video_comments(video_id, sort=0, offset=0, lc='', secret_key=''):
comments_info['error'] += '\n\n' + e.error_message
comments_info['error'] += '\n\nExit node IP address: %s' % e.ip
else:
- comments_info['error'] = traceback.format_exc()
+ comments_info['error'] = 'YouTube blocked the request. IP address: %s' % e.ip
except Exception as e:
- comments_info['error'] = traceback.format_exc()
+ comments_info['error'] = 'YouTube blocked the request. IP address: %s' % e.ip
if comments_info.get('error'):
print('Error retrieving comments for ' + str(video_id) + ':\n' +