diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 57b2423..6c5ae90 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -80,7 +80,10 @@ def parse_aspectratio(value): n = r[0] d = r[1].strip().split(' ')[0] try: - value = str(float(n) / float(d)) + if float(d): + value = str(float(n) / float(d)) + else: + value = str(float(n)) except: print('failed to parse aspect: %s' % value) else: