diff --git a/trans/models.py b/trans/models.py index c9f02bbec..2bf3af113 100644 --- a/trans/models.py +++ b/trans/models.py @@ -493,6 +493,8 @@ class Unit(models.Model): def get_location_links(self): ret = [] + if len(self.location) == 0: + return '' for location in self.location.split(','): location = location.strip() filename, line = location.split(':')