Commit 5bdaf804 by Jörg Stucke

Merge branch 'yara-3.9-support' of github.com:fkie-cad/common_helper_yara into yara-3.9-support

parents 38349c85 81434b28
...@@ -36,7 +36,7 @@ def scan( ...@@ -36,7 +36,7 @@ def scan(
scan_result = check_output(command, shell=True, stderr=STDOUT) scan_result = check_output(command, shell=True, stderr=STDOUT)
return _parse_yara_output(scan_result.decode()) return _parse_yara_output(scan_result.decode())
except CalledProcessError as e: except CalledProcessError as e:
logging.error(f"There seems to be an error in the rule file:\n{e.output.decode()}") logging.error(f'There seems to be an error in the rule file:\n{e.output.decode()}', exc_info=True)
return {} return {}
except Exception as e: except Exception as e:
logging.error(f'Could not parse yara result: {e}', exc_info=True) logging.error(f'Could not parse yara result: {e}', exc_info=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment