Fixed small frontend issues in workflow and app creator
This commit is contained in:
@@ -3188,13 +3188,15 @@ class AppBase:
|
||||
try:
|
||||
result += json.dumps(newres, indent=4)
|
||||
except json.JSONDecodeError as e:
|
||||
self.logger.info("Failed decoding result: %s" % e)
|
||||
|
||||
self.logger.info("[WARNING] Failed decoding result: %s" % e)
|
||||
try:
|
||||
result += str(newres)
|
||||
except ValueError:
|
||||
result += "Failed autocasting. Can't handle %s type from function. Must be string" % type(newres)
|
||||
self.logger.info("Can't handle type %s value from function" % (type(newres)))
|
||||
except Exception as e:
|
||||
self.logger.info("[ERROR] Failed to json dump. Returning as string.")
|
||||
result += str(newres)
|
||||
else:
|
||||
try:
|
||||
result += str(newres)
|
||||
@@ -3299,7 +3301,7 @@ class AppBase:
|
||||
|
||||
self.action_result["result"] = json.dumps({
|
||||
"success": False,
|
||||
"reason": f"General exception",
|
||||
"reason": f"General exception in the app. See shuffle action logs for more details.",
|
||||
"details": e,
|
||||
})
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ require (
|
||||
github.com/h2non/filetype v1.1.3
|
||||
github.com/nirasan/go-oauth-pkce-code-verifier v0.0.0-20170819232839-0fbfe93532da // indirect
|
||||
github.com/satori/go.uuid v1.2.0
|
||||
github.com/shuffle/shuffle-shared v0.2.15
|
||||
github.com/shuffle/shuffle-shared v0.2.17
|
||||
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
|
||||
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce
|
||||
google.golang.org/api v0.65.0
|
||||
|
||||
Reference in New Issue
Block a user