Skip to content

Commit

Permalink
Raise Exception on failed get
Browse files Browse the repository at this point in the history
  • Loading branch information
SamStudio8 committed Aug 26, 2014
1 parent b18fd33 commit 643469c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontier/frame.py
Expand Up @@ -122,7 +122,7 @@ def get(self, label, i):
if label in self.frontier_label_index:
index = self.frontier_label_index[label]
else:
print("[WARN] Label %s not in DataFrame" % label)
raise Exception("Label %s not in DataFrame" % label)

if i is not None:
return self[:, index][i]
Expand Down

0 comments on commit 643469c

Please sign in to comment.