Improve network traffic module tests
This commit is contained in:
parent
1b66e17780
commit
032a651efa
2 changed files with 12 additions and 3 deletions
|
@ -97,9 +97,6 @@ class BandwidthInfo(object):
|
|||
"""Return default active network adapter"""
|
||||
gateway = netifaces.gateways()["default"]
|
||||
|
||||
if not gateway:
|
||||
raise "No default gateway found"
|
||||
|
||||
return gateway[netifaces.AF_INET][1]
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue