Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Update instadl.py
Browse files Browse the repository at this point in the history
Fix for:
`can only concatenate str (not "NoneType") to str`
  • Loading branch information
code-rgb authored Nov 14, 2020
1 parent fa64ec3 commit 2a266b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userge/plugins/misc/instadl.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_caption(post: Post) -> str:
header = f"♥️`{post.likes}` 💬`{post.comments}`"
if post.is_video:
header += f" 👀`{post.video_view_count}`"
caption = header + "\n\n" + caption
caption = f"{header}\n\n{caption}"
return caption


Expand Down

0 comments on commit 2a266b9

Please sign in to comment.