Add log.error message to find out what are the causes of this
@@ -146,6 +146,7 @@ class Version(models.Model):
# If we came that far it's not a special version nor a branch or tag.
# Therefore just return the identifier to make a safe guess.
+ log.error('TODO: Raise an exception here. Testing what cases it happens')
return self.identifier
def get_absolute_url(self):
