Switch to side-by-side view
--- a/Allura/allura/controllers/discuss.py +++ b/Allura/allura/controllers/discuss.py @@ -74,7 +74,7 @@ @expose() @validate(pass_validator, error_handler=index) def subscribe(self, **kw): - threads = kw.pop('threads') + threads = kw.pop('threads', []) for t in threads: thread = self.M.Thread.query.find(dict(_id=t['_id'])).first() if 'subscription' in t: