torchbox / wagtail-content-import

A module for importing page content into Wagtail from third-party sources. Docs:

Home Page:https://torchbox.github.io/wagtail-content-import/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't Explode if Google Keys Not Set

cyface opened this issue · comments

Hello - right now, the edit page throws a 500 if the GOOGLE_AUTH_CLIENT_CONFIG and GOOGLE_PICKER_API_KEY are not set.

Could we make this a little more robust, and just not do anything if those are not set, or set to ""?

We have lots of envs where we may not want to run this (e.g. local dev envs) and don't want everyone to have to have these keys defined and working. I can set it to a shell of the JSON, but then it loads and just throws a .js error.

Thank you!

This should be fixed in version 0.3.0, which simply doesn't register the picker if config variables aren't provided or are empty. Let me know if this doesn't fix the issue!