Blake commited on
Commit
f6f2ef9
·
unverified ·
1 Parent(s): 2ff8493

fix logger.warn deprecation (#1534)

Browse files
Files changed (1) hide show
  1. 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.warn('Unexpected renderer encountered.')
154
- logger.warn(f'Renderer name: {video_details.keys()}')
155
- logger.warn(f'Search term: {self.query}')
156
- logger.warn(
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.'