Traceback (most recent call last):


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\interactiveshell.py", line 3263, in run_ast_nodes

if (await self.run_code(code, result,
async_=asy)):


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\interactiveshell.py", line 3360, in run_code

self.showtraceback(running_compiled_code=True)


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\interactiveshell.py", line 2047, in showtraceback

value, tb, tb_offset=tb_offset)


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\ultratb.py", line 1436, in structured_traceback

self, etype, value, tb, tb_offset, number_of_lines_of_context)


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\ultratb.py", line 1336, in structured_traceback

self, etype, value, tb, tb_offset, number_of_lines_of_context


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\ultratb.py", line 1193, in structured_traceback

tb_offset)


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\ultratb.py", line 1150, in format_exception_as_a_whole

last_unique, recursion_repeat = find_recursion(orig_etype, evalue, records)


 "C:\Users\91901\anaconda3\envs\tf_1\lib\site-packages\IPython\core\ultratb.py", line 451, in find_recursion

return len(records), 0
TypeError: object of type 'NoneType' has no len()

Traceback (most recent call last):


 "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 62, in application

response = frappe.handler.handle()


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle

data = execute_cmd(cmd)


 "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 57, in execute_cmd

return frappe.call(method, **frappe.form_dict)


 "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1007, in call

return fn(*args, **newargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 260, in save

return self._save(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 283, in _save

self.insert()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 216, in insert

self.set_new_name()


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 376, in set_new_name

set_new_name(self)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/naming.py", line 39, in set_new_name

doc.run_method("autoname")


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 765, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1041, in composer

return composed(self, method, *args, **kwargs)


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 1024, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 759, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/bank_statement_transaction_entry/bank_statement_transaction_entry.py", line 19, in autoname

mapper_name = self.bank + "-Statement-Settings"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
