You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where as Python Cmd expects _io.TextIOWrapper not str:
# ./sfcli.py -e /tmp/asdf
Traceback (most recent call last):
File "/root/Desktop/spiderfoot/./sfcli.py", line 1422, in <module>
s.cmdloop()
File "/usr/lib/python3.11/cmd.py", line 132, in cmdloop
line = self.stdin.readline()
^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'readline'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Desktop/spiderfoot/./sfcli.py", line 1424, in <module>
cin.close()
^^^^^^^^^
AttributeError: 'str' object has no attribute 'close'
The text was updated successfully, but these errors were encountered:
KDreynolds
pushed a commit
to KDreynolds/spiderfoot
that referenced
this issue
Dec 5, 2023
The
-e
argument clobbersstdin
with file contents as a string:spiderfoot/sfcli.py
Lines 1368 to 1379 in e84db07
Where as Python
Cmd
expects_io.TextIOWrapper
notstr
:The text was updated successfully, but these errors were encountered: