Merge pull request #11 from zzatkin/patch-1

Update network.py
This commit is contained in:
enkore 2013-06-04 00:36:50 -07:00
commit 01ecd2862f

View File

@ -1,4 +1,3 @@
from itertools import zip_longest from itertools import zip_longest
import subprocess import subprocess
@ -73,7 +72,7 @@ class Network(IntervalModule):
def init(self): def init(self):
if self.interface not in netifaces.interfaces(): if self.interface not in netifaces.interfaces():
raise RuntimeError("Unknown inteface {iface}!".format(iface=self.inteface)) raise RuntimeError("Unknown interface {iface}!".format(iface=self.interface))
self.baseinfo = { self.baseinfo = {
"interface": self.interface, "interface": self.interface,