diff --git a/chatcommunicate.py b/chatcommunicate.py
index d34b5638..ce7a13ea 100644
--- a/chatcommunicate.py
+++ b/chatcommunicate.py
@@ -70,8 +70,9 @@ def init(username, password):
try:
client.login(username, password)
break
- except:
- pass
+ except Exception as e:
+ exc_type, exc_obj, exc_tb = sys.exc_info()
+ print('{}: {}'.format(exc_type.__name__, exc_obj))
else:
raise Exception("Failed to log into " + site)