summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-25 02:36:40 +0900
committerkali <kali@leap.se>2013-01-25 02:36:40 +0900
commit6df7be5ed8c8fbe994182bd01b592b12666f93c7 (patch)
tree59a6fa9b6f8df949c6e1acc718c297c8756ed7e8
parent05b407b6c74b939a02c3d97ffe4a92faf0325284 (diff)
parent3f5e2081cdb93aadaf0cd7273c82a94797c0c351 (diff)
Merge branch 'develop' of ssh://leap.se/leap_client into develop
-rw-r--r--src/leap/base/config.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/leap/base/config.py b/src/leap/base/config.py
index 7021cb0f..9583a46a 100644
--- a/src/leap/base/config.py
+++ b/src/leap/base/config.py
@@ -336,11 +336,8 @@ def get_username():
try:
return os.getlogin()
except OSError as e:
- if e.message == "[Errno 22] Invalid argument":
- import pwd
- return pwd.getpwuid(os.getuid())[0]
- else:
- raise OSError(e.message)
+ import pwd
+ return pwd.getpwuid(os.getuid())[0]
def get_groupname():