mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Updated Java, C++, Python, Rust worker programs to catch the new exception; removed error message string comparisons.
This commit is contained in:
@@ -68,9 +68,7 @@ def main():
|
||||
for x in range(qr.get_size()):
|
||||
print(1 if qr.get_module(x, y) else 0)
|
||||
|
||||
except ValueError as e:
|
||||
if e.args[0] != "Data too long":
|
||||
raise
|
||||
except qrcodegen.DataTooLongError:
|
||||
print(-1)
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user