| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 43b369f commit 3f86d36
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -490,7 +490,7 @@ def display_dict(d: Dict[str, Any], padding: int) -> None: | |||
| 490 | 490 | id = getattr(obj, obj._id_attr) | |
| 491 | 491 | print(f"{obj._id_attr.replace('_', '-')}: {id}") | |
| 492 | 492 | if obj._repr_attr: | |
| 493 | - value = getattr(obj, obj._repr_attr, "None") | ||
| 493 | + value = getattr(obj, obj._repr_attr, "None") or "None" | ||
| 494 | 494 | value = value.replace("\r", "").replace("\n", " ") | |
| 495 | 495 | # If the attribute is a note (ProjectCommitComment) then we do | |
| 496 | 496 | # some modifications to fit everything on one line | |
| Back | FazBrowse Home | New Git URL |
0 commit comments