Type Error when creating a new Bank Account

Hi there, I am trying to create a Bank account into my ERPNext but I am unable to do so. It keeps on returning “TypeError: expected string or bytes-like object”. Is there any way I can solve this? Below is the copied error:

App Versions

{
	"bank_connector_erpnext": "0.0.1",
	"chat": "0.0.1",
	"check_run": "14.11.0",
	"ecommerce_integrations": "1.17.0",
	"email_delivery_service": "0.0.1",
	"erpnext": "14.61.0",
	"erpnext_shipping": "0.0.1",
	"erpnext_telegram_integration": "1.2.0",
	"fd_management": "0.0.1",
	"frappe": "14.62.4",
	"frappe_whatsapp": "0.0.2",
	"freight_management": "0.0.1",
	"helpdesk": "0.10.0",
	"hrms": "14.21.2",
	"it_management": "0.0.1",
	"payments": "0.0.1",
	"posawesome": "6.1.3",
	"raven": "1.3.2",
	"twilio_integration": "0.0.1"
}

Route

Form/Bank Account/new-bank-account-ifhoxglnvi

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 95, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 47, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1620, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/save.py", line 31, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 309, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 331, in _save
    return self.insert()
  File "apps/frappe/frappe/model/document.py", line 262, in insert
    self.run_before_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1051, in run_before_save_methods
    self.run_method("validate")
  File "apps/frappe/frappe/model/document.py", line 915, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1277, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1261, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
  File "apps/bank_connector_erpnext/bank_connector_erpnext/erpnext___bank_connector/doc_events/bank_account.py", line 6, in validate_ifsc_code
    if not pattern.match(self.branch_code):
TypeError: expected string or bytes-like object

Request Data

{
	"type": "POST",
	"args": {
		"doc": "{\"docstatus\":0,\"doctype\":\"Bank Account\",\"name\":\"new-bank-account-ifhoxglnvi\",\"__islocal\":1,\"__unsaved\":1,\"owner\":\"nathan@make-rich.net\",\"is_default\":0,\"is_company_account\":1,\"company\":\"Make Rich Ltd\",\"account_name\":\"HSBC (123)\",\"bank\":\"HSBC\",\"account\":\"HSBC - MRL\"}",
		"action": "Save"
	},
	"btn": {
		"jQuery360083155926693995211": {
			"events": {
				"click": [
					{
						"type": "click",
						"origType": "click",
						"guid": 831,
						"namespace": ""
					}
				]
			}
		}
	},
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.form.save.savedocs"
}

Response Data

{
	"exception": "TypeError: expected string or bytes-like object"
}

Any help on this would be appreciated