File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
api_app/analyzers_manager/file_analyzers Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def _download_signatures(cls) -> None:
66
66
67
67
for signature in signatures_list :
68
68
try :
69
- process = subprocess .run (
69
+ subprocess .run (
70
70
[
71
71
"/usr/bin/wget" ,
72
72
"-O" ,
@@ -77,7 +77,7 @@ def _download_signatures(cls) -> None:
77
77
)
78
78
79
79
except subprocess .CalledProcessError as e :
80
- stderr = process .stderr
80
+ stderr = e .stderr
81
81
logger .error (f"Failed to download signature: { e } " )
82
82
raise AnalyzerRunException (
83
83
f"Failed to update signatures due to error: { stderr } "
@@ -147,7 +147,7 @@ def run(self):
147
147
logger .info ("CAPA analysis successfully completed" )
148
148
149
149
except subprocess .CalledProcessError as e :
150
- stderr = process .stderr
150
+ stderr = e .stderr
151
151
logger .info (f"Capa Info failed to run for { self .filename } with command { e } " )
152
152
raise AnalyzerRunException (
153
153
f" Analyzer for { self .filename } failed with error: { stderr } "
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def run(self):
54
54
result = loads (process .stdout )
55
55
56
56
except subprocess .CalledProcessError as e :
57
- stderr = process .stderr
57
+ stderr = e .stderr
58
58
logger .info (f"Floss failed to run for { self .filename } with command { e } " )
59
59
raise AnalyzerRunException (
60
60
f" Analyzer for { self .filename } failed with error: { stderr } "
You can’t perform that action at this time.
0 commit comments