Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 101, in <module>
main()
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name='bench')
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/erp/frappe-bench/env/lib/python3.8/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 27, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/commands/site.py", line 297, in migrate
migrate(
File "/home/erp/frappe-bench/apps/frappe/frappe/migrate.py", line 67, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 41, in run_all
run_patch(patch)
File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 30, in run_patch
if not run_single(patchmodule = patch):
File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 71, in run_single
return execute_patch(patchmodule, method, methodargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 91, in execute_patch
frappe.get_attr(patchmodule.split()[0] + ".execute")()
File "/home/erp/frappe-bench/apps/erpnext/erpnext/patches/v13_0/update_old_loans.py", line 85, in execute
loan_type_doc.submit()
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 917, in submit
self._submit()
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 906, in _submit
self.save()
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 284, in save
return self._save(*args, **kwargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 319, in _save
self.run_before_save_methods()
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 952, in run_before_save_methods
self.run_method("validate")
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 847, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 1136, in composer
return composed(self, method, *args, **kwargs)
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 1119, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/erp/frappe-bench/apps/frappe/frappe/model/document.py", line 841, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/erp/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/loan_type/loan_type.py", line 12, in validate
self.validate_accounts()
File "/home/erp/frappe-bench/apps/erpnext/erpnext/loan_management/doctype/loan_type/loan_type.py", line 23, in validate_accounts
frappe.throw(_('Loan Account and Payment Account cannot be same'))
File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 424, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 403, in msgprint
_raise_exception()
File "/home/erp/frappe-bench/apps/frappe/frappe/__init__.py", line 357, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Loan Account and Payment Account cannot be same