I make a schedular for my application:
scheduler_events = {
"cron": {
"0/1 * * * *": [
"erpnext_app_store.erpnext_app_store.doctype.info_updater_from_github.update_info"
]
},
"all": [
"erpnext_app_store.erpnext_app_store.tasks.all",
], # 4 minutes
"daily": [
"erpnext_app_store.tasks.daily"
],
"hourly": [
"erpnext_app_store.tasks.hourly"
],
"weekly": [
"erpnext_app_store.tasks.weekly"
],
"monthly": [
"erpnext_app_store.tasks.monthly"
]
}
After that I ran my server (bench start) and took this Exception in log:
{'method_name': 'frappe.utils.change_log.check_for_update', 'log': <function log at 0x7f8cec5bc8c8>, 'retry': 0, 'is_async': True, 'user': 'Administrator', 'kwargs': {}, 'job_name': 'frappe.utils.change_log.check_for_update', 'event': 'weekly_long', 'method': <function check_for_update at 0x7f8cecc0a598>, 'site': 'erpnext_site'}
Traceback (most recent call last):
File "/home/emil/erpnext_app_store/erpnext_app_store/apps/frappe/frappe/utils/background_jobs.py", line 99, in execute_job
method(**kwargs)
File "/home/emil/erpnext_app_store/erpnext_app_store/apps/frappe/frappe/utils/change_log.py", line 151, in check_for_update
instance_version = Version(branch_version or apps[app].get('version'))
File "/home/emil/erpnext_app_store/erpnext_app_store/env/lib/python3.6/site-packages/semantic_version/base.py", line 77, in __init__
major, minor, patch, prerelease, build = self.parse(version_string, partial)
File "/home/emil/erpnext_app_store/erpnext_app_store/env/lib/python3.6/site-packages/semantic_version/base.py", line 205, in parse
raise ValueError('Invalid version string: %r' % version_string)
ValueError: Invalid version string: '12.x.x-develop'
How I can fix it? I try to find information in forum, but it was failed