chg: [qrcode] flake8 needs some drugs

pull/302/head
Alexandre Dulaunoy 2019-04-23 14:44:00 +02:00
parent d5180e7e79
commit 44050ec4da
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ def handler(q=False):
err = "Couldn't fetch attachment (JSON 'data' is empty). Are you using the 'Query enrichment' action?"
misperrors['error'] = err
print(err)
print(e)
return misperrors
image = cv2.imdecode(img_array, cv2.IMREAD_COLOR)
if q:
@ -47,7 +48,7 @@ def handler(q=False):
for item in cryptocurrencies:
if item in result:
try:
currency, address, extra = re.split('\:|\?', result)
currency, address, extra = re.split(r'\:|\?', result)
except Exception as e:
print(e)
if currency in cryptocurrencies: