gracefully handle integer UIDs in tracks
This commit is contained in:
parent
598b2cc7b8
commit
2d1830b9b8
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class BaseTrackView(TrackView):
|
||||||
|
|
||||||
def getMetadataTarget(self, key):
|
def getMetadataTarget(self, key):
|
||||||
value = self.metadata.get(key)
|
value = self.metadata.get(key)
|
||||||
if value.isdigit():
|
if isinstance(value, int) or value.isdigit():
|
||||||
obj = util.getObjectForUid(value)
|
obj = util.getObjectForUid(value)
|
||||||
if obj is not None:
|
if obj is not None:
|
||||||
url = ('%s/@@SelectedManagementView.html' %
|
url = ('%s/@@SelectedManagementView.html' %
|
||||||
|
|
Loading…
Add table
Reference in a new issue