Skip to content

Commit

Permalink
Switching to raising IOError instead of assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-cogliati-inl committed Jan 17, 2022
1 parent 5730855 commit 99c6083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/CodeInterfaces/Prescient/PrescientCodeInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ def _readBusData(self, filename):
#line sorta looks like: "Date,Hour,Bus,Shortfall,Overgeneration,LMP,LMP DA"
hasMinute = False
else:
assert False, "Unexpected first line of bus detail:" + line
a = 1/0 #because debug might be disabled
raise IOError("Unexpected first line of bus detail in Prescient Code Interface:" + line)
dataList = [s.replace(" ","_") for s in line.split(",")[3:]]
continue
splited = line.split(",")
Expand Down

0 comments on commit 99c6083

Please sign in to comment.