Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
•
084eefe
1
Parent(s):
d7ab57a
fix now
Browse files
scan.py
CHANGED
@@ -63,10 +63,10 @@ def clamd_file(file_path: str, clamd):
|
|
63 |
'clamscanExitCode': 0,
|
64 |
'clamscanOutput': "No virus found",
|
65 |
}
|
66 |
-
elif
|
67 |
return {
|
68 |
'clamscanExitCode': 1,
|
69 |
-
'clamscanOutput': ' '.join(ret[
|
70 |
}
|
71 |
|
72 |
|
|
|
63 |
'clamscanExitCode': 0,
|
64 |
'clamscanOutput': "No virus found",
|
65 |
}
|
66 |
+
elif tmp_path in ret and len(tmp_path) > 0:
|
67 |
return {
|
68 |
'clamscanExitCode': 1,
|
69 |
+
'clamscanOutput': ' '.join(ret[tmp_path]),
|
70 |
}
|
71 |
|
72 |
|