Commit cea37c03 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

StandardError does not exist anymore in python 3.x. Use Exception instead.

parent 1b26b3e7
......@@ -250,14 +250,14 @@ def complete_obs_table(obs_table, used_columns, filter_list, tolerance,
Raises
------
StandardError: When a filter is not present in the observation table.
Exception: When a filter is not present in the observation table.
"""
# TODO Print or log a warning when an error column is in the used column
# list but is not present in the observation table.
for name in filter_list:
if name not in obs_table.columns:
raise StandardError("The filter <{}> (at least) is not present in "
raise Exception("The filter <{}> (at least) is not present in "
"the observation table.".format(name))
name_err = name + "_err"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment