Error in Asset Depreciation Entry

Any one else getting this error?

{‘method_name’: ‘erpnext.assets.doctype.asset.asset.make_post_gl_entry’, ‘log’: <function log at 0x7f8d89cfb2f0>, ‘retry’: 0, ‘is_async’: True, ‘user’: ‘Administrator’, ‘kwargs’: {}, ‘job_name’: ‘erpnext.assets.doctype.asset.asset.make_post_gl_entry’, ‘event’: ‘daily’, ‘method’: <function make_post_gl_entry at 0x7f8d8d932c80>, ‘site’: ‘’}
Traceback (most recent call last):
File “/home/octo5/frappe-bench/apps/frappe/frappe/utils/”, line 99, in execute_job
File “/home/octo5/frappe-bench/apps/erpnext/erpnext/assets/doctype/asset/”, line 520, in make_post_gl_entry
if not is_cwip_accounting_enabled(self.asset_category):
NameError: name ‘self’ is not defined

Prior to the latest PR for asset depreciation, everythig was running smoothly so i don’t know what broke.