Getting error log "erpnext.projects.doctype.project.project.hourly_reminder Error"

From last few days i am getting below error . Kindly help me to resolve this error.
Any help is appreciated.
##Thank you

{'method_name': 'erpnext.projects.doctype.project.project.hourly_reminder', 'log': <function log at 0x7f9391ef1e18>, 'retry': 0, 'is_async': True, 'user': 'Administrator', 'kwargs': {}, 'job_name': 'erpnext.projects.doctype.project.project.hourly_reminder', 'event': 'hourly', 'method': <function hourly_reminder at 0x7f9391e45048>, 'site': 'myerp.sjain.io'}
Traceback (most recent call last):
  File "/home/sjain/erpnext/frappe-bench/apps/frappe/frappe/email/queue.py", line 77, in send
    text_content = html2text(message)
  File "/home/sjain/erpnext/frappe-bench/env/lib/python3.6/site-packages/html2text/__init__.py", line 867, in html2text
    return h.handle(html)
  File "/home/sjain/erpnext/frappe-bench/env/lib/python3.6/site-packages/html2text/__init__.py", line 134, in handle
    self.feed(data)
  File "/home/sjain/erpnext/frappe-bench/env/lib/python3.6/site-packages/html2text/__init__.py", line 130, in feed
    data = data.replace("</' + 'script>", "</ignore>")
AttributeError: 'NoneType' object has no attribute 'replace'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sjain/erpnext/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 103, in execute_job
    method(**kwargs)
  File "/home/sjain/erpnext/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py", line 438, in hourly_reminder
    send_project_update_email_to_users(project.name)
  File "/home/sjain/erpnext/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/project.py", line 516, in send_project_update_email_to_users
    reply_to=incoming_email_account
  File "/home/sjain/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 472, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead)
  File "/home/sjain/erpnext/frappe-bench/apps/frappe/frappe/email/queue.py", line 78, in send
    except HTMLParser.HTMLParseError:
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'

A forum search on the above turned up this that may help

1 Like

Thank you .
I have cleared this error. Above link is really helpful.