Client fails if auth type is x509_proxy and X509_USER_PROXY is not set
The client fails if the authentication type is x509_proxy and the X509_USER_PROXY environment variable is not set with a very confusing error message:
```
$ rucio whoami
2018-09-27 09:22:57,749	ERROR	coercing to Unicode: need string or buffer, module found
```

diff --git a/lib/rucio/client/baseclient.py b/lib/rucio/client/baseclient.py
index 1174c41b4..1562a75c6 100644
--- a/lib/rucio/client/baseclient.py
+++ b/lib/rucio/client/baseclient.py
@@ -182,7 +182,7 @@ class BaseClient(object):
                         else:
                             fname = '/tmp/x509up_u%d' % geteuid()
                             if path.exists(fname):
-                                self.creds['client_proxy'] = path
+                                self.creds['client_proxy'] = fname
                             else:
                                 raise MissingClientParameter('Cannot find a valid X509 proxy; not in %s, $X509_USER_PROXY not set, and '
                                                              '\\'x509_proxy\\' not set in the configuration file.' % fname)
diff --git a/lib/rucio/core/lifetime_exception.py b/lib/rucio/core/lifetime_exception.py
index 87f27a91e..1c97da138 100644
--- a/lib/rucio/core/lifetime_exception.py
+++ b/lib/rucio/core/lifetime_exception.py
@@ -42,19 +42,11 @@ def list_exceptions(exception_id, states, session=None):
     if states:
         state_clause = [models.LifetimeExceptions.state == state for state in states]
 
-    query = session.query(models.LifetimeExceptions.id,
-                          models.LifetimeExceptions.scope, models.LifetimeExceptions.name,
-                          models.LifetimeExceptions.did_type,
-                          models.LifetimeExceptions.account,
-                          models.LifetimeExceptions.pattern,
-                          models.LifetimeExceptions.comments,
-                          models.LifetimeExceptions.state,
-                          models.LifetimeExceptions.expires_at,
-                          models.LifetimeExceptions.created_at)
+    query = session.query(models.LifetimeExceptions)
     if state_clause != []:
         query = query.filter(or_(*state_clause))
     if exception_id:
-        query = query.filter(id=exception_id)
+        query = query.filter_by(id=exception_id)
 
     for exception in query.yield_per(5):
         yield {'id': exception.id, 'scope': exception.scope, 'name': exception.name,
['lib/rucio/client/baseclient.py', 'lib/rucio/core/lifetime_exception.py']