fix: Fallback for get_build_version
This commit is contained in:
parent
af1e7b1443
commit
d5dd0e06f8
1 changed files with 6 additions and 1 deletions
|
|
@ -85,4 +85,9 @@ def get_desk_assets(build_version):
|
|||
}
|
||||
|
||||
def get_build_version():
|
||||
return str(os.path.getmtime(os.path.join(frappe.local.sites_path, '.build')))
|
||||
try:
|
||||
return str(os.path.getmtime(os.path.join(frappe.local.sites_path, '.build')))
|
||||
except OSError:
|
||||
# .build can sometimes not exist
|
||||
# this is not a major problem so send fallback
|
||||
return frappe.utils.random_string(8)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue