2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-16 01:57:08 +00:00

fix: Return fallback list in cached_frappe_commands

This commit is contained in:
Gavin D'souza 2021-09-09 13:54:35 +05:30
parent 6160ff48ab
commit a015501699

View File

@ -181,6 +181,7 @@ def get_cached_frappe_commands():
if os.path.exists(bench_cache_file): if os.path.exists(bench_cache_file):
command_dump = open(bench_cache_file, "r").read() or "[]" command_dump = open(bench_cache_file, "r").read() or "[]"
return json.loads(command_dump) return json.loads(command_dump)
return []
def get_frappe_commands(): def get_frappe_commands():