Skip to content

Commit

Permalink
Merge d7bd1f0 into 19b587a
Browse files Browse the repository at this point in the history
  • Loading branch information
mfalesni committed Oct 1, 2019
2 parents 19b587a + d7bd1f0 commit 7ffa654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/widgetastic/log.py
Expand Up @@ -115,8 +115,8 @@ def wrapped(self, *args, **kwargs):
result = f(self, *args, **kwargs)
except DoNotReadThisWidget:
elapsed_time = (time.time() - start_time) * 1000.0
self.logger.info(
'%s not read on widget\'s request (elapsed %.0f ms)',
self.logger.warning(
'%s - not read on widget\'s request (elapsed %.0f ms)',
signature, elapsed_time)
raise
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions src/widgetastic/widget/base.py
Expand Up @@ -545,8 +545,8 @@ def read(self, *args, **kwargs):
When you implement this method, the exact return value is up to you but it *MUST* be
consistent with what :py:meth:`fill` takes.
"""
raise NotImplementedError(
'Widget {} does not implement read()!'.format(type(self).__name__))
raise DoNotReadThisWidget(
'Widget {} does not implement read()'.format(type(self).__name__))

def _process_fill_handler(self, handler):
"""Processes a given handler in the way that it is usable as a callable + its representation
Expand Down

0 comments on commit 7ffa654

Please sign in to comment.