From 8a0ed9538cd3a303c2682ebf736988679e3fd2bf Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Dec 06 2017 15:24:33 +0000 Subject: fix another bare exception --- diff --git a/koji/__init__.py b/koji/__init__.py index 9d9be6f..f59d3de 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: