From 4d4698f016c6eda6a087b013756542e763bd0476 Mon Sep 17 00:00:00 2001 From: Christoph Groth <christoph.groth@cea.fr> Date: Tue, 8 Mar 2016 21:32:52 +0100 Subject: [PATCH] reformulate message of previous commit --- kwant/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwant/builder.py b/kwant/builder.py index b43b5547..e33aba94 100644 --- a/kwant/builder.py +++ b/kwant/builder.py @@ -1071,7 +1071,7 @@ class Builder(object): the leads are numbered in the order in which they are attached. """ if self.symmetry.num_directions: - raise ValueError("Can only attach leads to finite systems") + raise ValueError("Leads can only be attached to finite systems.") if add_cells < 0 or int(add_cells) != add_cells: raise ValueError('add_cells must be an integer >= 0.') -- GitLab