Fix node info query crashed if no file
If there is no file for node, when query it will be crashed.
Check if file is None before use it.
@@ -472,6 +472,7 @@ class NodeViewSet(viewsets.ViewSet):
raise ResourceNotFound
else:
# Set file url of node
+ if node.file:
node.file = request.build_absolute_uri(node.file.url)
ports = Port.objects.filter(node=node)
node.links = [
