Merge branch 'develop' into german-translations-2022-05-23
This commit is contained in:
commit
e3bc3bf0f0
@ -23,7 +23,7 @@ form_grid_templates = {"items": "templates/form_grid/material_request_grid.html"
|
||||
|
||||
class MaterialRequest(BuyingController):
|
||||
def get_feed(self):
|
||||
return _("{0}: {1}").format(self.status, self.material_request_type)
|
||||
return
|
||||
|
||||
def check_if_already_pulled(self):
|
||||
pass
|
||||
|
@ -252,11 +252,14 @@ def notify_errors(exceptions_list):
|
||||
)
|
||||
|
||||
for exception in exceptions_list:
|
||||
exception = json.loads(exception)
|
||||
error_message = """<div class='small text-muted'>{0}</div><br>""".format(
|
||||
_(exception.get("message"))
|
||||
)
|
||||
content += error_message
|
||||
try:
|
||||
exception = json.loads(exception)
|
||||
error_message = """<div class='small text-muted'>{0}</div><br>""".format(
|
||||
_(exception.get("message"))
|
||||
)
|
||||
content += error_message
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
content += _("Regards,") + "<br>" + _("Administrator")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user