diff --git a/pandora/user/models.py b/pandora/user/models.py index 4a486d79..1a039397 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -110,7 +110,7 @@ class SessionData(models.Model): if screen and 'height' in screen and 'width' in screen: data.screensize = '%sx%s' % (screen['width'], screen['height']) window = data.info.get('window', {}) - if window 'outerHeight' in window and 'outerWidth' in window: + if window and 'outerHeight' in window and 'outerWidth' in window: data.windowsize = '%sx%s' % (window['outerWidth'], window['outerHeight']) if not data.timesseen: data.timesseen = 0