소스 검색

fix: allow empty patches.txt

version-14
Ankush Menat 3 년 전
부모
커밋
8b30b61c3e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      frappe/modules/patch_handler.py

+ 3
- 0
frappe/modules/patch_handler.py 파일 보기

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


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


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


불러오는 중...
취소
저장