diff --git a/youtube/__init__.py b/youtube/__init__.py index b646ab42..9c81a047 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -39,7 +39,10 @@ def commatize(num): if num is None: return '' if isinstance(num, str): - num = int(num) + try: + num = int(num) + except ValueError: + return num return '{:,}'.format(num) def timestamp_replacement(match): diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index e25a917f..d90ab8bd 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -670,7 +670,7 @@