mirror of https://github.com/MISP/misp-modules
chg: [qrcode] flake8 needs some drugs
parent
d5180e7e79
commit
44050ec4da
|
@ -32,6 +32,7 @@ def handler(q=False):
|
||||||
err = "Couldn't fetch attachment (JSON 'data' is empty). Are you using the 'Query enrichment' action?"
|
err = "Couldn't fetch attachment (JSON 'data' is empty). Are you using the 'Query enrichment' action?"
|
||||||
misperrors['error'] = err
|
misperrors['error'] = err
|
||||||
print(err)
|
print(err)
|
||||||
|
print(e)
|
||||||
return misperrors
|
return misperrors
|
||||||
image = cv2.imdecode(img_array, cv2.IMREAD_COLOR)
|
image = cv2.imdecode(img_array, cv2.IMREAD_COLOR)
|
||||||
if q:
|
if q:
|
||||||
|
@ -47,7 +48,7 @@ def handler(q=False):
|
||||||
for item in cryptocurrencies:
|
for item in cryptocurrencies:
|
||||||
if item in result:
|
if item in result:
|
||||||
try:
|
try:
|
||||||
currency, address, extra = re.split('\:|\?', result)
|
currency, address, extra = re.split(r'\:|\?', result)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
if currency in cryptocurrencies:
|
if currency in cryptocurrencies:
|
||||||
|
|
Loading…
Reference in New Issue