diff --git a/r2/r2/lib/js.py b/r2/r2/lib/js.py index 037567f92..f076b90fe 100755 --- a/r2/r2/lib/js.py +++ b/r2/r2/lib/js.py @@ -252,7 +252,7 @@ class JQuery(Module): def use(self): from r2.lib.template_helpers import static - if c.secure or c.user.pref_local_js: + if c.secure or (c.user and c.user.pref_local_js): return Module.use(self) else: ext = ".js" if g.uncompressedJS else ".min.js"