Skip to content

Commit

Permalink
Merge pull request #594 from flolep2607/patch-1
Browse files Browse the repository at this point in the history
Fix: unsupported operand type(s) for +: 'PosixPath' and 'str'
  • Loading branch information
AndyTheFactory authored Dec 1, 2023
2 parents 6a7da1c + 18a6272 commit 32ba20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newspaper/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def memoize_articles(source, articles):

memo = {}
cur_articles = {article.url: article for article in articles}
d_pth = settings.MEMO_DIR + "/" + domain_to_filename(source_domain)
d_pth = settings.MEMO_DIR / domain_to_filename(source_domain)

if d_pth.exists():
f = codecs.open(d_pth, "r", "utf8")
Expand Down

1 comment on commit 32ba20f

@realnihal
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you publish this change on pypi, the version available still has the bug

Please sign in to comment.