diff options
author | Sascha Silbe <sascha@silbe.org> | 2009-08-24 10:54:02 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha@silbe.org> | 2009-08-24 10:54:02 (GMT) |
commit | 496090fe62191da435044a3102378ab4dbadbda1 (patch) | |
tree | 433fbda1ced46c6bdd363ad1057a0cfb4c062638 /src/sugar/profile.py | |
parent | bdd760d92a37dcbb892bc1ce8e35d9c84dcb0a32 (diff) |
let the logger do the formatting
Diffstat (limited to 'src/sugar/profile.py')
-rw-r--r-- | src/sugar/profile.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sugar/profile.py b/src/sugar/profile.py index d5012bd..9d897ba 100644 --- a/src/sugar/profile.py +++ b/src/sugar/profile.py @@ -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 = "" |