Skip to content

Commit

Permalink
Satisfy new pylint rule raise-missing-from
Browse files Browse the repository at this point in the history
  • Loading branch information
aawdls committed Sep 18, 2020
1 parent a595d3c commit 234c42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aa/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def get_event_at(self, pv, instant, request_params=None):
try:
return self.get_values(pv, instant, instant, 1,
request_params).get_event(0)
except IndexError:
except IndexError as e:
error_msg = 'No data found for pv {} at timestamp {}'
raise ValueError(error_msg.format(pv, instant))
raise ValueError(error_msg.format(pv, instant)) from e


class AaFetcher(Fetcher):
Expand Down

0 comments on commit 234c42a

Please sign in to comment.