diff options
author | jgart | 2021-10-28 20:40:21 -0400 |
---|---|---|
committer | jgart | 2021-10-28 20:40:21 -0400 |
commit | 61530ef4f3ce2c7ad6a617a683160ea081680a03 (patch) | |
tree | efd4bb67e22d00ad6e73d1959fc0cd704e21db39 /issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi | |
parent | c458a930930705ff34ef0a0fdf47925753c414f3 (diff) | |
download | gn-gemtext-61530ef4f3ce2c7ad6a617a683160ea081680a03.tar.gz |
Add return-canned-text-if-notebook-description-returns-none issue
Diffstat (limited to 'issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi')
-rw-r--r-- | issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi | 25 |
1 files changed, 25 insertions, 0 deletions
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? |