Added welcome form and redirect, as well as docker autobuilds

This commit is contained in:
frikky
2022-07-21 23:32:03 +02:00
parent 2f90b743bf
commit 285bf7d2d2
6 changed files with 773 additions and 7 deletions
+12 -2
View File
@@ -3391,12 +3391,22 @@ class AppBase:
except TypeError as e:
self.logger.info("[ERROR] TypeError issue: %s" % e)
self.action_result["status"] = "FAILURE"
self.action_result["result"] = "TypeError: %s" % str(e)
self.action_result["result"] = json.dumps({
"success": False,
"reason": f"Typeerror. Most likely due to a list that should've been a string. See details for more info.",
"details": e,
})
#self.action_result["result"] = "TypeError: %s" % str(e)
else:
self.logger.info("[DEBUG] Function %s doesn't exist?" % action["name"])
self.logger.error(f"[ERROR] App {self.__class__.__name__}.{action['name']} is not callable")
self.action_result["status"] = "FAILURE"
self.action_result["result"] = "Function %s is not callable." % actionname
#self.action_result["result"] = "Function %s is not callable." % actionname
self.action_result["result"] = json.dumps({
"success": False,
"reason": f"Function %s doesn't exist." % actionname,
})
# https://ptb.discord.com/channels/747075026288902237/882017498550112286/882043773138382890
except (requests.exceptions.RequestException, TimeoutError) as e: