Browse Source

fix: allow empty patches.txt

version-14
Ankush Menat 3 years ago
parent
commit
8b30b61c3e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      frappe/modules/patch_handler.py

+ 3
- 0
frappe/modules/patch_handler.py View File

@@ -109,6 +109,9 @@ def get_patches_from_app(app: str, patch_type: Optional[PatchType] = None) -> Li
parser.optionxform = str
parser.read(patches_txt)

# empty file
if not parser.sections():
return []

if not patch_type:
return [patch for patch in parser[PatchType.pre_model_sync.value]] + \


Loading…
Cancel
Save