Skip to content

Commit

Permalink
πŸ› Prevent error on None value
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Jan 25, 2024
1 parent 2db726a commit 1250cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okr/scrapers/snapchat_shows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _scrape_insights_snapchat_show(start_date, snapchat_show):
"unique_topsnap_views": row.uniqueTopsnapViews,
"topsnap_views": row.topsnapViews,
# Convert from percentage to fraction
"attachment_conversion": row.attachmentConversion / 100.0,
"attachment_conversion": (row.attachmentConversion or 0) / 100.0,
"attachment_article_views": row.attachmentArticleViews,
"attachment_video_views": row.attachmentVideoViews,
"screenshots": row.screenshots,
Expand Down

0 comments on commit 1250cc2

Please sign in to comment.