fix: busy bar after failed calc_qr

This commit is contained in:
scgbckbone 2025-02-12 07:23:34 +01:00 committed by doc-hex
parent afe85a3772
commit 660b4617bd

View File

@ -68,8 +68,11 @@ class QRDisplaySingle(UserInteraction):
# make the QR, if needed.
if not self.qr_data:
dis.busy_bar(True)
self.calc_qr(body)
try:
self.calc_qr(body)
except Exception:
dis.busy_bar(False)
raise
# draw display
dis.busy_bar(False)