git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8792609
)
python/graph: don't crash colourer on bad link
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Fri, 1 Jun 2018 04:55:37 +0000
(16:55 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Sun, 10 Jun 2018 17:02:20 +0000
(19:02 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/graph.py
patch
|
blob
|
history
diff --git
a/python/samba/graph.py
b/python/samba/graph.py
index 17626e0a3619c0e51bd6f73f7c9013505f779a25..0c389a74e3ad856df4cec6a6d37d44093fd2ca24 100644
(file)
--- a/
python/samba/graph.py
+++ b/
python/samba/graph.py
@@
-517,6
+517,8
@@
def get_transitive_colourer(colours, n_vertices):
n = 1 + int(n_vertices ** 0.5)
def f(link):
+ if not isinstance(link, int):
+ return ''
return scale[min(link * m // n, m - 1)]
else: