Blob Blame Raw
From c4349587f1d5a352eacaa1551475f8d21f95145d Mon Sep 17 00:00:00 2001
From: kozec <kozec@kozec.com>
Date: Sun, 18 Feb 2018 20:41:03 +0100
Subject: [PATCH] Fix: Additional errors logged when connection fails. Fixes
 #423

---
 syncthing_gtk/daemon.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/syncthing_gtk/daemon.py b/syncthing_gtk/daemon.py
index 0f2b009..d694632 100644
--- a/syncthing_gtk/daemon.py
+++ b/syncthing_gtk/daemon.py
@@ -1166,13 +1166,13 @@ def _split_headers(self, buffer):
 			code = int(headers[0].split(b" ")[1])
 			if code == 401:
 				self._error(HTTPAuthException(buffer))
-				return
+				return None, None
 			elif code == 404:
 				self._error(HTTPCode(404, "Not found", buffer, headers))
-				return
+				return None, None
 			elif code != 200:
 				self._error(HTTPCode(code, response, buffer, headers))
-				return
+				return None, None
 		except Exception, e:
 			# That probably wasn't HTTP
 			import traceback