Blake
commited on
fix logger.warn deprecation (#1534)
Browse files- pytube/contrib/search.py +4 -4
pytube/contrib/search.py
CHANGED
@@ -150,10 +150,10 @@ class Search:
|
|
150 |
continue
|
151 |
|
152 |
if 'videoRenderer' not in video_details:
|
153 |
-
logger.
|
154 |
-
logger.
|
155 |
-
logger.
|
156 |
-
logger.
|
157 |
'Please open an issue at '
|
158 |
'https://github.com/pytube/pytube/issues '
|
159 |
'and provide this log output.'
|
|
|
150 |
continue
|
151 |
|
152 |
if 'videoRenderer' not in video_details:
|
153 |
+
logger.warning('Unexpected renderer encountered.')
|
154 |
+
logger.warning(f'Renderer name: {video_details.keys()}')
|
155 |
+
logger.warning(f'Search term: {self.query}')
|
156 |
+
logger.warning(
|
157 |
'Please open an issue at '
|
158 |
'https://github.com/pytube/pytube/issues '
|
159 |
'and provide this log output.'
|