aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-10 14:20:14 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-10 14:20:14 +0300
commit444ec48edc2323d82818195709bce66db7b1ef8b (patch)
tree8c71cb86dfaab26152615a80b14f211ed8fab2ab
parentf6a1cc21b14087796a5f0911061c2c75bcd6b1dd (diff)
downloadServo-444ec48edc2323d82818195709bce66db7b1ef8b.tar.gz
Servo-444ec48edc2323d82818195709bce66db7b1ef8b.tar.bz2
Servo-444ec48edc2323d82818195709bce66db7b1ef8b.zip
Fix stats session KeyError
-rw-r--r--servo/views/stats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/views/stats.py b/servo/views/stats.py
index 0822373..9b79603 100644
--- a/servo/views/stats.py
+++ b/servo/views/stats.py
@@ -112,7 +112,7 @@ def data(request, query):
report, what = query.split('/')
locations = request.user.locations
- params = request.session['stats_filter']
+ params = request.session.get('stats_filter')
timescale = params.get('timescale', default_timescale)
location = params.get('location', request.user.location)