ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Error Adding New Users

AA

Hey, I keep getting this error message when I try to add a new user?
Any ideas what I might be doing wrong. Already added the Email Domain

hello, it may help more understanding the problem if you add screenshot from your browser console.
ctrl + shift + c then console tab

desk.js:92 Using this console may allow attackers to impersonate you and steal your information. Do not enter or paste code that you do not understand.
/api/method/frappe.client.save:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 1172, in call
    return fn(*args, **newargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/client.py", line 212, in save
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

jquery.min.js:3 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://erp.somalab.com.mx/assets/frappe/css/fonts/fontawesome/fontawesome-webfont.woff2?v=4.7.0
/api/method/frappe.desk.form.save.savedocs:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 1172, in call
    return fn(*args, **newargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

libs.min.js?ver=1637832580.0:231 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: undefined, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (https://erp.somalab.com.mx/assets/js/libs.min.js?ver=1637832580.0:231:3368)
    at va (https://erp.somalab.com.mx/assets/js/libs.min.js?ver=1637832580.0:231:21539)
    at Sa (https://erp.somalab.com.mx/assets/js/libs.min.js?ver=1637832580.0:231:22250)
    at Ha (https://erp.somalab.com.mx/assets/js/libs.min.js?ver=1637832580.0:231:22332)
    at l (https://erp.somalab.com.mx/assets/js/libs.min.js?ver=1637832580.0:231:209)
    at Object.convert_to_user_tz (https://erp.somalab.com.mx/assets/js/desk.min.js?ver=1637832580.0:1:277131)
    at prettyDate (https://erp.somalab.com.mx/assets/js/desk.min.js?ver=1637832580.0:1:100992)
    at HTMLSpanElement.<anonymous> (https://erp.somalab.com.mx/assets/js/desk.min.js?ver=1637832580.0:1:202016)
    at Function.each (https://erp.somalab.com.mx/assets/frappe/js/lib/jquery/jquery.min.js:2:2861)
    at n.fn.init.each (https://erp.somalab.com.mx/assets/frappe/js/lib/jquery/jquery.min.js:2:845)
w @ libs.min.js?ver=1637832580.0:231
request.js:250 Unable to handle success response Object
request.js:251 TypeError: Cannot read properties of undefined (reading 'show_alert')
    at Object.callback (desk.min.js:1)
    at Object.success [as success_callback] (desk.min.js:1)
    at 200 (desk.min.js:1)
    at Object.<anonymous> (desk.min.js:1)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at z (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)
(anonymous) @ request.js:251
/api/method/frappe.desk.form.save.savedocs:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 1172, in call
    return fn(*args, **newargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

request.js:250 Unable to handle success response Object
request.js:251 TypeError: Cannot read properties of undefined (reading 'show_alert')
    at Object.callback (desk.min.js:1)
    at Object.success [as success_callback] (desk.min.js:1)
    at 200 (desk.min.js:1)
    at Object.<anonymous> (desk.min.js:1)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at z (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)
(anonymous) @ request.js:251
/api/method/frappe.desk.form.save.savedocs:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

request.js:387 Traceback (most recent call last):
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/app.py", line 68, in application
    response = frappe.api.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 1172, in call
    return fn(*args, **newargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/desk/form/save.py", line 21, in savedocs
    doc.save()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 285, in save
    return self._save(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 307, in _save
    self.insert()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 268, in insert
    self.run_post_save_methods()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 994, in run_post_save_methods
    self.run_method("on_update")
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 859, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1148, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 1131, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/model/document.py", line 853, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 119, in on_update
    self.send_password_notification(self.__new_password)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 260, in send_password_notification
    self.send_welcome_mail_to_user()
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 326, in send_welcome_mail_to_user
    site_url=get_url(),
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/core/doctype/user/user.py", line 352, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/__init__.py", line 540, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/queue.py", line 134, in send
    unsubscribe_link=unsubscribe_link, with_container=with_container)
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 260, in get_formatted_html
    "brand_logo": get_brand_logo(email_account) if with_container or header else None,
  File "/home/frappe-admin/bench-13/apps/frappe/frappe/email/email_body.py", line 483, in get_brand_logo
    return email_account.get('brand_logo')
AttributeError: 'NoneType' object has no attribute 'get'

DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Delta.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/AttributeMap.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Op.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for webpack://Quill/node_modules/quill-delta/dist/Iterator.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load source map: Could not load content for https://erp.somalab.com.mx/assets/js/socket.io.slim.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

are you using version-13 for frappe + erpnext? because other branches can be buggy, to check run: bench version
alternatively you can try adding brand logo, go to “Email Account” under Footer section and attach image, save and see if that help.