Skip to content

Commit 4e72c0e

Browse files
authored
Fixed bad operand type runtime error
Due to addition of new line, the assignment was incomplete which resulted in error during execution. Fixed by enclosing the whole declaration into parenthesis ref : https://stackoverflow.com/a/29880192
1 parent 5633daf commit 4e72c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Reconnoitre/lib/file_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def write_recommendations(results, ip_address, outputdir):
121121
for port in ports:
122122
port = port.split("/")[0]
123123

124-
description = "[*] "
125-
+ j["services"][service]["description"]
124+
description = ("[*] "
125+
+ j["services"][service]["description"])
126126
print(description % {"ip": ip_address, "port": port})
127127
f.write((description + "\n") %
128128
{"ip": ip_address, "port": port})

0 commit comments

Comments
 (0)