mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-30 16:33:37 +00:00
Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt).
This commit is contained in:
parent
68446ea5d6
commit
7dcf2022e3
2 changed files with 5 additions and 3 deletions
|
@ -726,8 +726,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:
|
||||
|
|
|
@ -648,7 +648,8 @@ class BaseIOStream(object):
|
|||
except UnsatisfiableReadError:
|
||||
raise
|
||||
except Exception as e:
|
||||
gen_log.warning("error on read: %s" % e)
|
||||
if 1 != e.errno:
|
||||
gen_log.warning("error on read: %s" % e)
|
||||
self.close(exc_info=True)
|
||||
return
|
||||
if pos is not None:
|
||||
|
|
Loading…
Reference in a new issue