Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG archive not closed on error

  • Loading branch information...
commit 43f5b97778d21551c71c0482789989d936e71a89 1 parent 31b809d
@kwgoodman authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  la/io.py
View
1  la/io.py
@@ -340,6 +340,7 @@ def __getitem__(self, index):
label = list(self.label)
lab = [label[0][int(i)] for i in index]
if len(set(lab)) != len(lab):
+ f.close()
raise IndexError("Duplicate labels along axis 0.")
label[0] = lab
lar = larry(self.x[index], label, validate=False)

0 comments on commit 43f5b97

Please sign in to comment.
Something went wrong with that request. Please try again.