Skip to content

Commit

Permalink
chore: minimize try block
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Hagg committed Jan 6, 2021
1 parent 6149e15 commit 8e15daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powersimdata/data_access/execute_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_status(self, scenario_id):
:raises Exception: if scenario not found in execute list on server.
:return: (*str*) -- scenario status
"""
table = self.get_execute_table()
try:
table = self.get_execute_table()
return table.loc[int(scenario_id), "status"]
except KeyError:
raise Exception(f"Scenario not found in execute list, id = {scenario_id}")
Expand Down

0 comments on commit 8e15daa

Please sign in to comment.