From d5656961178b9414dece8225a911e4a23fbc6bc0 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Fri, 31 Jul 2015 22:03:02 -0700 Subject: [PATCH] sigh --- tildetown-py/stats.py | 2 +- tildetown-py/util.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tildetown-py/stats.py b/tildetown-py/stats.py index 3e95e37..ac79a30 100644 --- a/tildetown-py/stats.py +++ b/tildetown-py/stats.py @@ -73,7 +73,7 @@ def get_data(): data = {'generated_at': datetime.now().strftime('%Y-%m-%d %H:%M:%S'), 'site_name': 'tilde.town', 'site_url': 'http://tilde.town', - 'uptime': str(uptime('-p')),} + 'uptime': str(uptime('-p')).rstrip(),} data.update(user_data) return data diff --git a/tildetown-py/util.py b/tildetown-py/util.py index 7f29993..a1b2447 100644 --- a/tildetown-py/util.py +++ b/tildetown-py/util.py @@ -6,7 +6,8 @@ def slurp(file_path): except FileNotFoundError: pass except UnicodeDecodeError: - return contents + pass + return contents def thread(initial, *fns): value = initial