소스 검색

Check existence in a way that we won't make unnecessary queries.

pull/24/head
Ben Kurtovic 12 년 전
부모
커밋
bcb1756510
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      pages/copyvios.mako

+ 3
- 1
pages/copyvios.mako 파일 보기

@@ -17,7 +17,9 @@
if not site:
return None, None, None
page = site.get_page(title)
if page.exists in [page.PAGE_MISSING, page.PAGE_INVALID]:
try:
page.get() # Make sure that the page exists before we check it!
except (exceptions.PageNotFoundError, exceptions.InvalidPageError):
return site, page, None

# if url:


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