Commit 6f4fdcb7 authored by echel0n's avatar echel0n

Misc changes

parent 30462b1f
......@@ -6,12 +6,12 @@ services:
build: .
ports:
- 8081:8081
volumes:
- D:\docker\sickrage\config:/root/.sickrage
- D:\Downloads:/downloads
- D:\Videos\TV:/tv
environment:
- TZ=Canada/Pacific
# volumes:
# - /config:/root/.sickrage
# - /downloads:/downloads
# - /tv:/tv
# environment:
# - TZ=Canada/Pacific
# - LANG=en_US.UTF-8
# - LANGUAGE=en_US:en
# - LC_ALL=en_US.UTF-8
\ No newline at end of file
......@@ -69,17 +69,13 @@ class BaseHandler(RequestHandler, ABC):
url = url[len(sickrage.app.config.web_root) + 1:]
if url[:3] != 'api':
self.render(
'/errors/404.mako',
title=_('HTTP Error 404'),
header=_('HTTP Error 404'))
self.render('/errors/404.mako', title=_('HTTP Error 404'), header=_('HTTP Error 404'))
else:
self.write('Wrong API key used')
elif self.settings.get("debug") and "exc_info" in kwargs:
exc_info = kwargs["exc_info"]
trace_info = ''.join(["%s<br>" % line for line in traceback.format_exception(*exc_info)])
request_info = ''.join(["<strong>%s</strong>: %s<br>" % (k, self.request.__dict__[k]) for k in
self.request.__dict__.keys()])
request_info = ''.join(["<strong>%s</strong>: %s<br>" % (k, self.request.__dict__[k]) for k in self.request.__dict__.keys()])
error = exc_info[1]
sickrage.app.log.error(error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment