Skip to content

Commit

Permalink
Handle 'MILCInterface' object has no attribute 'log_level' error (#24549
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zvecr authored Oct 30, 2024
1 parent 6693a30 commit 465cbc8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/python/qmk/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ def filter_help() -> str:

def _set_log_level(level):
cli.acquire_lock()
old = cli.log_level
cli.log_level = level
try:
old = cli.log_level
cli.log_level = level
except AttributeError:
old = cli.log.level
cli.log.setLevel(level)
logging.root.setLevel(level)
cli.release_lock()
Expand Down

0 comments on commit 465cbc8

Please sign in to comment.