From 66e42e9bfcb7e704f937cebbe4b945605880482c Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Dec 07 2017 23:16:03 +0000 Subject: fix another bare exception --- diff --git a/koji/__init__.py b/koji/__init__.py index 7bd60fc..ba1a05f 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -2261,7 +2261,9 @@ class ClientSession(object): # connect without client certificate, which means that the conn # will fail with a handshake failure, which is retried by default. sinfo = self._callMethod('sslLogin', [proxyuser], retry=False) - except: + except Exception as e: + e_str = ''.join(traceback.format_exception_only(type(e), e)) + self.logger.debug('gssapi auth failed: %s', e_str) # Auth with https didn't work. Restore for the next attempt. self.baseurl = old_baseurl finally: