Traceback (most recent call last):
File "filter_import.py", line 77, in <module>
get(sys.argv[1])
File "filter_import.py", line 35, in get
timestamp, ip, hash_value = lines.split()
ValueError: need more than 2 values to unpack
I got this error message when I run my code filter_import, can anyone explain a bit what the problem is?
Part of my code:
if __name__ == '__main__':
import sys
if len(sys.argv) == 1:
print 'Usage: filter_import.py <filename>'
sys.exit(1)
get(sys.argv[1])