Compare commits

...

1 Commits

Author SHA1 Message Date
1df74106da fix: defensive qrcode version lookup in --check (#54)
Some checks failed
Build Verification / verify-build (pull_request) Failing after 16s
Smoke Test / smoke (pull_request) Failing after 20s
Build Validation / validate-manuscript (pull_request) Successful in 17s
2026-04-21 11:42:38 +00:00

View File

@@ -541,7 +541,12 @@ def check_dependencies():
try:
import qrcode
print(f" ✅ qrcode {qrcode.__version__}")
try:
qr_ver = qrcode.__version__
except AttributeError:
import importlib.metadata
qr_ver = importlib.metadata.version("qrcode")
print(f" ✅ qrcode {qr_ver}")
except ImportError:
print(f" ❌ qrcode NOT FOUND (pip install qrcode)")