From e07388085eee762b87d8b4091a737148e98a27a3 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 20 Oct 2016 03:41:57 -0500 Subject: [PATCH] Fix request error --- resources/lib/connect/connectionmanager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/connect/connectionmanager.py b/resources/lib/connect/connectionmanager.py index 2e973971..ac38475f 100644 --- a/resources/lib/connect/connectionmanager.py +++ b/resources/lib/connect/connectionmanager.py @@ -176,8 +176,8 @@ class ConnectionManager(object): request['verify'] = request.get('ssl') or False action = request['type'] - request.pop('type') - request.pop('ssl') + request.pop('type', None) + request.pop('ssl', None) log.debug("ConnectionManager requesting %s" % request) @@ -187,7 +187,7 @@ class ConnectionManager(object): r.raise_for_status() except Exception as e: # Elaborate on exceptions? - log.error(e) + log.exception(e) raise else: