Open
Description
What's the problem (or question)?
- Problem on
is_json()
function in helpers/file_helper.py
Do you have an idea for a solution?
- Adding
self
because it's function based on class, and removed theopen(json_file,'r')
because OS cannot handled bigger file.
So the newfile_helper.py
would be like this:
...
...
def is_json(self, json_file):
try:
print(json_file)
'''
using open for big file can result Error
'''
# with open(json_file, "r") as f:
# json_object = json.load(f)
except ValueError:
return False
return True
...
...
How can we reproduce the issue?
- Run the VHostScan and give as the output Json `VHostScan -t -oJ .
- It will show an error
TypeError: is_json() takes 1 positional argument but 2 were given
What are the running context details?
- Exception traceback (if any):
if not file.is_json(output):
TypeError: is_json() takes 1 positional argument but 2 were given
Metadata
Metadata
Assignees
Labels
No labels