summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@riseup.net>2016-11-03 17:32:33 -0200
committerBruno Wagner <bwagner@riseup.net>2016-11-03 17:32:33 -0200
commitc85739da6cbf3add1119b4c9a7f7475833d0531e (patch)
treea02b09065d6e6d524aaa46bbf5d7adc89d131c2e /service
parente2e24d0e5a1b28138d93bec0bba5015002397065 (diff)
Users won't see the traceback on errors anymore #373
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/application.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py
index fbcc42c0..6c831d78 100644
--- a/service/pixelated/application.py
+++ b/service/pixelated/application.py
@@ -207,8 +207,10 @@ def start_site(config, resource):
reactor.listenTCP(8008, telnetFactory, interface='localhost')
reactor.listenTCP(8009, sshFactory, interface='localhost')
+ site = PixelatedSite(resource)
+ site.displayTracebacks = False
if config.sslkey and config.sslcert:
- reactor.listenSSL(config.port, PixelatedSite(resource), _ssl_options(config.sslkey, config.sslcert),
+ reactor.listenSSL(config.port, site, _ssl_options(config.sslkey, config.sslcert),
interface=config.host)
else:
- reactor.listenTCP(config.port, PixelatedSite(resource), interface=config.host)
+ reactor.listenTCP(config.port, site, interface=config.host)