summaryrefslogtreecommitdiff
path: root/issues/binderlite/return-canned-text-if-notebook-description-returns-none.gmi
blob: 49f5d3f366f616ee8a5ba0c5447bbba1dbf7ffd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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?