fix error if dashboard url is of unknown kind
diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py
index e6f77fd..ff6c445 100644
--- a/planetstack/core/dashboard/views/home.py
+++ b/planetstack/core/dashboard/views/home.py
@@ -48,6 +48,8 @@
return self.readTemplate(fn)
elif url.startswith("http"):
return '<iframe src="%s" width="100%%" height="100%%" style="min-height: 1024px;" frameBorder="0"></iframe>' % url
+ else:
+ return "don't know how to load dashboard %s" % url
def multiDashboardView(self, request, context):
head_template = self.head_template