Skip to content

Commit

Permalink
fix: key error in devto
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Destructive committed Jul 11, 2022
1 parent 5438e52 commit 0da193c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crossposter/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
article["title"] = get_default_or_input(post, ["title"])
article["description"] = get_default_or_input(post, ["subtitle", "description"])
slug = get_default_or_input(post, ["slug", "canonical_url"])
if post["slug"]:
if "slug" in post:
slug = blog_link + str(slug)
image_url = get_default_or_input(post, ["image_url", "cover_image"])

Expand Down
2 changes: 0 additions & 2 deletions crossposter/publications/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def devto(article, output):
with open(output_file, "w") as file:
file.write(dev_frontmatter)

dev_keys = dev_keys.split("dev.to:")[1].strip()

API_ENDPOINT = "https://dev.to/api/articles"

data = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

HERE = pathlib.Path(__file__).parent

VERSION = "0.4.0"
VERSION = "0.4.1"
PACKAGE_NAME = "crossposter"
AUTHOR = "Meet Gor"
AUTHOR_EMAIL = "[email protected]"
Expand Down

0 comments on commit 0da193c

Please sign in to comment.