| Summary: | error: pop from empty list | ||
|---|---|---|---|
| Product: | papyon | Reporter: | Riccardo (c10ud) <c10ud.dev> |
| Component: | general | Assignee: | papyon-bugs |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
happened to me while receiving a nice 400 error when doing content roaming. however the patch seems fine |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
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))