Commit 320dcca2 authored by Michal Čihař's avatar Michal Čihař

Saner handling of numeric locations

parent 3e3ce1e3
......@@ -1283,6 +1283,8 @@ class Unit(models.Model):
ret = []
if len(self.location) == 0:
return ''
if self.location.isdigit():
return _('unit ID %s') % self.location
for location in self.location.split(','):
location = location.strip()
filename, line = location.split(':')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment