Skip to content

Commit

Permalink
raise exception instead of exit #80
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Mar 9, 2021
1 parent a2ec76e commit ed60aaa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/gridorder2/flowpath_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ def truncation_logic(df, snappt, lencolname, gordcolname, elevcolname):
df = df2

if df.empty:
print("TODO: account for truncation before flowpath")
print(df)
sys.exit()
raise Exception("truncation resulted in empty flowpath.")
return df


Expand Down

0 comments on commit ed60aaa

Please sign in to comment.