chg: [internal] Resolve deprecation warning in qrcode

pull/620/head
Jakub Onderka 2023-07-01 15:13:52 +02:00
parent 2bc495cece
commit 4b7150cc69
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def handler(q=False):
q = json.loads(q)
filename = q['attachment']
try:
img_array = np.fromstring(binascii.a2b_base64(q['data']), np.uint8)
img_array = np.frombuffer(binascii.a2b_base64(q['data']), np.uint8)
except Exception as e:
err = "Couldn't fetch attachment (JSON 'data' is empty). Are you using the 'Query enrichment' action?"
misperrors['error'] = err