Fix Soma integration connection issue (#27692)

* Added a check for Connect actually returning something before telling the user the setup succeeded

* Added handling for KeyError in case API returns empty response, formatting

* Trying to please the linter
This commit is contained in:
Tiit Rätsep authored and Martin Hjelmare committed 2019-12-11 13:27:28 +01:00
1 parent 004af97699
commit 01ef44fd68
4 files changed
+41 -9

No files matched your search

+3 -1
View File
@@ -3,7 +3,9 @@
"abort": {
"already_setup": "You can only configure one Soma account.",
"authorize_url_timeout": "Timeout generating authorize url.",
"missing_configuration": "The Soma component is not configured. Please follow the documentation."
"missing_configuration": "The Soma component is not configured. Please follow the documentation.",
"result_error": "SOMA Connect responded with error status.",
"connection_error": "Failed to connect to SOMA Connect."
},
"create_entry": {
"default": "Successfully authenticated with Soma."