mirror of https://github.com/MISP/misp-modules
fix: [pep] Comply to PEP E261
parent
dbb7d37b1e
commit
3fd6633c01
|
@ -73,9 +73,9 @@ def handler(q=False):
|
||||||
do_not_include_vmrayjobids = request["config"].get("do_not_include_vmrayjobids")
|
do_not_include_vmrayjobids = request["config"].get("do_not_include_vmrayjobids")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shareable = bool(strtobool(shareable)) # Do we want the sample to be shared?
|
shareable = bool(strtobool(shareable)) # Do we want the sample to be shared?
|
||||||
reanalyze = not bool(strtobool(do_not_reanalyze)) # Always reanalyze the sample?
|
reanalyze = not bool(strtobool(do_not_reanalyze)) # Always reanalyze the sample?
|
||||||
include_vmrayjobids = not bool(strtobool(do_not_include_vmrayjobids)) # Include the references to VMRay job IDs
|
include_vmrayjobids = not bool(strtobool(do_not_include_vmrayjobids)) # Include the references to VMRay job IDs
|
||||||
except ValueError:
|
except ValueError:
|
||||||
misperrors["error"] = "Error while processing settings. Please double-check your values."
|
misperrors["error"] = "Error while processing settings. Please double-check your values."
|
||||||
return misperrors
|
return misperrors
|
||||||
|
|
Loading…
Reference in New Issue