AttributeError: 'Ethernet' object has no attribute 'lower'
Irondev25 opened this issue · comments
Rahul Bhaskar commented
I am on ubuntu based machine, using python 3.8.5
ran the script
sudo python3 packet_sniffer.py -i wlo1 -d
Traceback (most recent call last):
File "packet_sniffer.py", line 153, in <module>
sniff(cli_args)
File "packet_sniffer.py", line 138, in sniff
packet_sniffer.execute()
File "packet_sniffer.py", line 44, in execute
setattr(self, protocol.lower(), protocol)
AttributeError: 'Ethernet' object has no attribute 'lower'
EONRaider commented
True. Thanks for pointing that out. I had renamed a certain variable without noticing it was already in use. Code is working properly now.