2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +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):
command_dump = open(bench_cache_file, "r").read() or "[]"
return json.loads(command_dump)
return []
def get_frappe_commands():