From fc00b12550e24a0f4dfb001f2a9d0778e5aa05f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3mas=20Edwardsson?= Date: Wed, 11 Aug 2010 23:12:35 +0000 Subject: [PATCH] Fixed usage and error handlind --- check_bond.py/trunk/check_bond.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_bond.py/trunk/check_bond.py b/check_bond.py/trunk/check_bond.py index 54dd1bc..9303613 100644 --- a/check_bond.py/trunk/check_bond.py +++ b/check_bond.py/trunk/check_bond.py @@ -28,7 +28,7 @@ def readbond( interface ): # Read interface info try: bondfh = open (intfile, 'r') - except IOError as (errno, strerror): + except IOError, (errno, strerror): print "Unable to open bond %s: %s" % (intfile, strerror) sys.exit(3) except: @@ -68,7 +68,7 @@ def readbond( interface ): return bond def usage(): - print "Ble" + print "Usage: %s -i bond0" % sys.argv[0] def main(argv): # Set variables