Closed 0x90n closed 8 years ago
Treat the error string and object type as separate entities, preventing the error "TypeError: Concatenating 'str' and 'error' objects."
Old: root@0x3c:~/altdns# ./altdns.py -i test.txt -o data_output -w words.txt -r -s resolved_domainsbig [] 500/626767 completed [_] 1000/626767 completed Traceback (most recent call last): File "./altdns.py", line 209, in main() File "./altdns.py", line 206, in main print("error: " + error) TypeError: cannot concatenate 'str' and 'error' objects
New: root@0x3c:~/altdns# ./altdns.py -i test.txt -o data_output -w words.txt -r -s resolved_domainsbig [] 500/626767 completed [_] 1000/626767 completed error: can't start new thread error: can't start new thread error: can't start new thread
Nice catch! Accepted the pull request. Cheers.
Treat the error string and object type as separate entities, preventing the error "TypeError: Concatenating 'str' and 'error' objects."
Old: root@0x3c:~/altdns# ./altdns.py -i test.txt -o data_output -w words.txt -r -s resolved_domainsbig [] 500/626767 completed [_] 1000/626767 completed Traceback (most recent call last): File "./altdns.py", line 209, in
main()
File "./altdns.py", line 206, in main
print("error: " + error)
TypeError: cannot concatenate 'str' and 'error' objects
New: root@0x3c:~/altdns# ./altdns.py -i test.txt -o data_output -w words.txt -r -s resolved_domainsbig [] 500/626767 completed [_] 1000/626767 completed error: can't start new thread error: can't start new thread error: can't start new thread