Skip to content

Commit

Permalink
fix: Fix a pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaokang2022 committed Jan 21, 2025
1 parent cd0d781 commit cc777af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tkintertools/theme/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
# package `darkdetect` through the regular method
if int(major) >= 10 and int(micro) >= 14393:
import darkdetect._windows_detect as darkdetect

if globals().get("darkdetect") is None:
else:
import darkdetect
else:
import darkdetect
except ImportError:
darkdetect = None
Expand Down

0 comments on commit cc777af

Please sign in to comment.