---
lib/networktables.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/networktables.py b/lib/networktables.py
index 585405f..c46020e 100644
--- a/lib/networktables.py
+++ b/lib/networktables.py
@@ -46,6 +46,7 @@ def _CheckValidContext(context):
@param context: one of CONTEXTS
@raise errors.ConfigurationError: if a check fails
+
"""
if context not in CONTEXTS:
raise errors.ConfigurationError("Invalid context '%s'" % context)
@@ -71,9 +72,7 @@ def RemoveNetworkEntry(ip_address, context, iface):
# 0: success
# 2: non-existent entry, we're fine with that
# something else: unknown, raise error
- if (result.exit_code == 0) or (result.exit_code == 2):
- pass
- else:
+ if result.exit_code not in (0, 2):
raise errors.CommandError("Can't remove network entry")
--
1.5.4.3