Skip to content

Commit

Permalink
bug: fixed un-defined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zerothi committed Feb 26, 2021
1 parent 4cf73c4 commit ca79e2e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sisl/io/sile.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,9 @@ def step_to(self, keywords, case=True, reread=True, ret_index=False):
idx = 0

# force return an index
if is_keys:
for i, key in enumerate(keys):
if self.line_has_key(l, key, case):
return found, l, i
for i, key in enumerate(keys):
if self.line_has_key(l, key, case):
return found, l, i
return found, l, idx

# sometimes the line contains information, as a
Expand Down

0 comments on commit ca79e2e

Please sign in to comment.