Skip to content

Commit

Permalink
Add Py3 raising code to avoid Py2 syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kinverarity1 committed Oct 20, 2019
1 parent d90036c commit 1c38c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lasio/las.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def add_section(pattern, name, **sect_kws):
e.message = err_msg
raise e
else:
raise ValueError(err_msg) from e
raise ValueError(err_msg).with_traceback(e.__traceback__)
self.set_data(data, truncate=False)
drop.append(s["title"])
for key in drop:
Expand Down

0 comments on commit 1c38c25

Please sign in to comment.