Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar/profile.py')
-rw-r--r--src/sugar/profile.py8
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 = ""