From 61530ef4f3ce2c7ad6a617a683160ea081680a03 Mon Sep 17 00:00:00 2001 From: jgart Date: Thu, 28 Oct 2021 20:40:21 -0400 Subject: Add return-canned-text-if-notebook-description-returns-none issue --- ...d-text-if-notebook-description-returns-none.gmi | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi (limited to 'issues/binderlite') diff --git a/issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi b/issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi new file mode 100644 index 0000000..49f5d3f --- /dev/null +++ b/issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi @@ -0,0 +1,25 @@ +# Return canned text if notebook description returns none + +* bug? +* assigned: jgart + +Notebooks that do not have a description will use python's `None` value as the +project's description. + +Should we return some other text instead? + +We could do something like the following idea: + +``` +if notebook.description == None: + return "Project does not have a description." +``` + +Or we could do: + +``` +if notebook.description == None: + return "Could not retrieve description for project." +``` + +WDYT? -- cgit v1.2.3