summaryrefslogtreecommitdiff
path: root/networkx/algorithms/bipartite/cluster.py
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/algorithms/bipartite/cluster.py')
-rw-r--r--networkx/algorithms/bipartite/cluster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/algorithms/bipartite/cluster.py b/networkx/algorithms/bipartite/cluster.py
index 8d1f0547..d8aaf06b 100644
--- a/networkx/algorithms/bipartite/cluster.py
+++ b/networkx/algorithms/bipartite/cluster.py
@@ -110,10 +110,10 @@ def latapy_clustering(G, nodes=None, mode="dot"):
try:
cc_func = modes[mode]
- except KeyError as e:
+ except KeyError as err:
raise nx.NetworkXError(
"Mode for bipartite clustering must be: dot, min or max"
- ) from e
+ ) from err
if nodes is None:
nodes = G