Skip to content

Commit

Permalink
minor error reporting change
Browse files Browse the repository at this point in the history
  • Loading branch information
ceube1 committed Mar 31, 2022
1 parent 2dec97a commit 337ff56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emspy/emspy.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 436,7 @@ def _get_weather(self, weather_metrics: list, when: str, hour: int, zone_ts: int
raise Exception('ERROR: Weather data must either be called from sometime today or tomorrow relative to'
' current simulation timestep.')
if hour > 23 or hour < 0:
raise Exception('ERROR: The hour of the day cannot exceed 24 or be less than 0')
raise Exception('ERROR: The hour of the day cannot exceed 23 or be less than 0')
try:
if zone_ts > self.timestep_per_hour:
raise Exception(f'ERROR: The desired weather forecast timestep, [{zone_ts}] cannot exceed the subhourly'
Expand Down

0 comments on commit 337ff56

Please sign in to comment.