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 * Fix proxy_indexers setting not loading from config file
* Add subtitle information to the cmd show and cmd shows api output * 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 * 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] [develop changelog]
* Improve display of progress bars in the Downloads columns of the show list page * 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 * 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 * Remove commented out html from display show accidently left in during UI changes
* Fix display issue of season tables in displayShow view / Display Specials * 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) ### 0.2.1 (2014-10-22 06:41:00 UTC)

View file

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

View file

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