[Papyon-bugs] [Bug 31527] New: error: pop from empty list
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 10 09:48:54 PST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=31527
Summary: error: pop from empty list
Product: papyon
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: papyon-bugs at lists.freedesktop.org
ReportedBy: c10ud.dev at gmail.com
sometimes it happens (happened to me in case of 400 errors in roaming)
diff --git a/papyon/gnet/protocol/HTTP.py b/papyon/gnet/protocol/HTTP.py
index f455f6c..aade093 100644
--- a/papyon/gnet/protocol/HTTP.py
+++ b/papyon/gnet/protocol/HTTP.py
@@ -136,7 +136,8 @@ class HTTP(gobject.GObject):
# self._outgoing_queue[0].headers['Host'] =
response.headers['Location']
# self._setup_transport()
# return
- self._outgoing_queue.pop(0) # pop the request from the queue
+ if len(self._outgoing_queue) > 0:
+ self._outgoing_queue.pop(0) # pop the request from the queue
if response.status >= 400:
logger.error("Received error code %i (%s) from %s:%i" %
(response.status, response.reason, self._host, self._port))
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the papyon-bugs
mailing list