Updated Java, C++, Python, Rust worker programs to catch the new exception; removed error message string comparisons.

This commit is contained in:
Project Nayuki
2018-10-26 02:42:35 +00:00
parent 8da8107cc2
commit c36c4a28eb
4 changed files with 5 additions and 13 deletions
+1 -3
View File
@@ -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()