rockymeza / wifi

[unmaintained] WiFi tools for linux

Home Page:http://pypi.python.org/pypi/wifi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

schema with colons brakes the library

albertogeniola opened this issue · comments

Hi all,

I want to report that a schema is saved without any attention to "special chars", things get broken. I discovered it by saving schema names with the associated BSSID. The library does not complain when saving the schema, so colons are reported in /etc/network/interfaces.
However, any further invocation of schema.find() will throw an exception: "need more than 1 value to unpack".

This happens because interface file is parsed without any special handling for colons.

My quick workaround at this time is to replace colons with underscores.