Skip to content

Commit

Permalink
Correct typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil committed Jan 12, 2024
1 parent d913476 commit 1d2dbbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion daily_read/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def error_reporting(log, module="all"):
for child in log.root.manager.loggerDict:
if module in child:
cache = log.root.getChild(child)._cache
# If there are errors messages in the log, the cache will the element 40: True
# If there are errors messages in the log, the cache will have the element 40: True
if 40 in cache and cache[40]:
error_string += f"\nErrors logged in {child} during execution"
if error_string:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def test_error_reporting_without_error():
"""Test that no error is raised when log no has error messages"""
"""Test that no error is raised when the log has no error messages"""
daily_read_module_name = "tests"
log = logging.getLogger(daily_read_module_name)
log.info("Test info")
Expand All @@ -17,7 +17,7 @@ def test_error_reporting_without_error():


def test_error_reporting_with_error():
"""Test error thrown when log has error messages"""
"""Test error thrown when the log has error messages"""
daily_read_module_name = "tests"
log = logging.getLogger(daily_read_module_name)
log.error("Test error message")
Expand Down

0 comments on commit 1d2dbbb

Please sign in to comment.