fix: prettier error log

This commit is contained in:
barredterra 2021-04-08 17:53:48 +02:00
parent ea0fd31f60
commit 3a12f1f1ae

View File

@ -146,10 +146,8 @@ def validate(filters):
validate_fiscal_year(from_date, to_date, company)
if not frappe.db.exists('DATEV Settings', filters.get('company')):
frappe.log_error(_('Please create {} for Company {}.').format(
'<a href="desk#List/DATEV%20Settings/List">{}</a>'.format(_('DATEV Settings')),
frappe.bold(filters.get('company'))
))
msg = 'Please create DATEV Settings for Company {}'.format(filters.get('company'))
frappe.log_error(msg, title='DATEV Settings missing')
return False
return True