1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Merge pull request #96 from JackDandy/AddSupressTornadoError1

Change to suppress reporting of Tornado exception error 1.
This commit is contained in:
JackDandy 2014-11-03 23:14:54 +00:00
commit ba4bb7ca54
3 changed files with 8 additions and 5 deletions

View File

@ -35,6 +35,7 @@
* Fix proxy_indexers setting not loading from config file
* Add subtitle information to the cmd show and cmd shows api output
* Removed requirement for http login for API when an API key is provided
* Change API now uses Timezone setting at General Config/Interface/User Interface/ at relevant endpoints
[develop changelog]
* Improve display of progress bars in the Downloads columns of the show list page
@ -49,7 +50,7 @@
* Fix and repositioned show_message on display show to use bootstrap styling
* Remove commented out html from display show accidently left in during UI changes
* Fix display issue of season tables in displayShow view / Display Specials
* Change API now uses Timezone setting at General Config/Interface/User Interface/ at relevant endpoints
* Change to suppress reporting of Tornado exception error 1
### 0.2.1 (2014-10-22 06:41:00 UTC)

View File

@ -686,8 +686,9 @@ class HTTP1ServerConnection(object):
# This exception was already logged.
conn.close()
return
except Exception:
gen_log.error("Uncaught exception", exc_info=True)
except Exception as e:
if 1 != e.errno:
gen_log.error("Uncaught exception", exc_info=True)
conn.close()
return
if not ret:

View File

@ -601,8 +601,9 @@ class BaseIOStream(object):
pos = self._read_to_buffer_loop()
except UnsatisfiableReadError:
raise
except Exception:
gen_log.warning("error on read", exc_info=True)
except Exception as e:
if 1 != e.errno:
gen_log.warning("error on read", exc_info=True)
self.close(exc_info=True)
return
if pos is not None: