let the logger do the formatting

This commit is contained in:
Sascha Silbe
2009-08-24 12:54:02 +02:00
parent bdd760d92a
commit 496090fe62
15 changed files with 58 additions and 58 deletions
+4 -4
View File
@@ -66,8 +66,8 @@ class Profile(object):
f = open(key_path, "r")
lines = f.readlines()
f.close()
except IOError, e:
logging.error("Error reading public key: %s" % e)
except IOError:
logging.exception('Error reading public key')
return None
magic = "ssh-dss "
@@ -92,8 +92,8 @@ class Profile(object):
f = open(key_path, "r")
lines = f.readlines()
f.close()
except IOError, e:
logging.error("Error reading private key: %s" % e)
except IOError:
logging.exception('Error reading private key')
return None
key = ""