Compare commits

..

No commits in common. "257d61aefc391124bad8e41fef34b4fc2f211473" and "7186957eb0466f2e046288b01bfb4759f542c13b" have entirely different histories.

View file

@ -127,14 +127,14 @@ with Session(engine) as session:
article_record.dfp_targeting_id = article_soup.find(
"script", {"class": "dfp_targeting", "data-key": "id"}
)["data-value"]
except (NameError, TypeError):
except NameError:
print("Could not find or load IDs for this post")
try:
tags = article_soup.find(
"script", {"class": "dfp_targeting", "data-key": "tags"}
)["data-value"].split("|")
except (NameError, TypeError):
except NameError:
print("Could not find or load any tags for this article")
tags = []