Skip to content

Commit

Permalink
fix: Call to translate function
Browse files Browse the repository at this point in the history
  • Loading branch information
NagariaHussain committed Apr 15, 2021
1 parent 82b9833 commit ce2dabe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frappe/utils/__init__.py
Expand Up @@ -169,7 +169,9 @@ def validate_url(txt, throw=False):
except Exception as e:
if throw:
frappe.throw(
frappe._("<strong>'{0}'</strong> is not a valid URL").format(txt)
frappe._(
"'{0}' is not a valid URL"
).format('<strong>' + +'</strong>')
)

return False
Expand Down

0 comments on commit ce2dabe

Please sign in to comment.