diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-10 17:28:45 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-10 17:28:45 -0500 |
commit | 0e896cbf3491fe5b866c8a9d632a2a9171639a13 (patch) | |
tree | 569b5ca1940d993ce7f31ff56dcbab5e42095fef /youtube | |
parent | f532386976b06f207b8ad7eae1b0f364da6eddbe (diff) | |
download | yt-local-0e896cbf3491fe5b866c8a9d632a2a9171639a13.tar.lz yt-local-0e896cbf3491fe5b866c8a9d632a2a9171639a13.tar.xz yt-local-0e896cbf3491fe5b866c8a9d632a2a9171639a13.zip |
[comments_info]: relax traceback message
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/comments.py | 4 |
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' + |