From 55c14f38446de8a29df532976fefcd205e52941c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 12 May 2017 17:50:31 -0700 Subject: [PATCH] Don't leave bitrate undefined for non-temporal photos. --- etiquette/objects.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etiquette/objects.py b/etiquette/objects.py index 26d7d87..b46d901 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -501,6 +501,8 @@ class Photo(ObjectBase): if self.duration: self.bitrate = (self.bytes / 128) / self.duration + else: + self.bitrate = None self.mimetype = helpers.get_mimetype(self.real_filepath) if self.mimetype is None: