소스 검색

generating the temp_article now uses empty string rather than None

Alistair Magee 10 년 전
부모
커밋
3f75d36a91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_article_urls/custom_article_urls.py

+ 1 - 1
custom_article_urls/custom_article_urls.py

@@ -33,7 +33,7 @@ def custom_url(generator, metadata):
                 """
                 pass
             else:
-                temp_article = Article(None, metadata=metadata)
+                temp_article = Article("", metadata=metadata)
                 url_format = pattern_matched['URL']
                 save_as_format = pattern_matched['SAVE_AS']
                 url = url_format.format(**temp_article.url_format)