Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adiciona verificação de presença de allowed_domains em BaseGazetteSpider #1319

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion data_collection/gazette/spiders/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def __init__(self, start_date="", end_date="", *args, **kwargs):

if not hasattr(self, "TERRITORY_ID"):
raise NotConfigured("Please set a value for `TERRITORY_ID`")


if not hasattr(self, "allowed_domains"):
raise NotConfigured("Please set a value for `allowed_domains`)
trevineju marked this conversation as resolved.
Show resolved Hide resolved

if start_date:
try:
self.start_date = datetime.strptime(start_date, "%Y-%m-%d").date()
Expand Down
Loading