Code4PuertoRico / suministrospr

Suministros Puerto Rico - Entérate, Ayuda, Informa
https://suministrospr.com
Apache License 2.0
42 stars 17 forks source link

AttributeError on first load of resource #48

Closed tommytomtj closed 4 years ago

tommytomtj commented 4 years ago

So I'm getting an error "AttributeError: 'bool' object has no attribute 'get'" when I click on links for the first time. If i reload the page or go back and click again it works fine. I think I narrowed the issue down to the CacheMixin.

Adding a line with response.render() right below the cache.set lambda seems to resolve the issue for me. I'll submit that change for you guys to determine if it makes sense.

github-actions[bot] commented 4 years ago

Gracias por por tu aportación! El equipo le dara un vistazo pronto.

jpadilla commented 4 years ago

@tommytomtj sorry about that, should be fixed in https://github.com/Code4PuertoRico/suministrospr/commit/000ae80ecb1a6974467d665cc1acb125a0085eaf