Fixing tlnb

This commit is contained in:
Samuel Clay 2016-11-02 22:07:10 -07:00
parent 1ac763e294
commit 1454da0b43
2 changed files with 5 additions and 2 deletions

View file

@ -85,7 +85,7 @@
<img src="/media/img/logo_512.png" class="logo">
<h1>NewsBlur is in <span class="error404">maintenance mode</span></h1>
<div class="description">
<p>Moving to a new primary MongoDB database server. This server has been the cause of all the 1 minute downtimes over the past couple days. This should take 5 minutes max.</p>
<p>Moving to a new primary MongoDB database server. This server has been the cause of the slowdowns over the past couple days. This should take 5 minutes max.</p>
<p>To pass the time, <a href="http://mlkshk.com/popular">check out what's popular on MLKSHK</a>.</p>
</div>
</div>

View file

@ -97,7 +97,10 @@ def read_streams(streams):
if not data:
streams.remove(stream)
break
combination_message = "[%-6s] %s" % (stream.name[:6], data)
try:
combination_message = "[%-6s] %s" % (stream.name[:6], data)
except UnicodeDecodeError:
continue
sys.stdout.write(combination_message)
break