Commit f982c2b5 authored by Jeff Piollé's avatar Jeff Piollé

use built-in exceptions

parent a1a6bda0
......@@ -97,12 +97,12 @@ class AbstractMapper(object):
if mode == READ_ONLY and not existant:
logging.error(
"File {} not existing and can not be read".format(url))
raise Exception(
raise IOError(
"File {} not existing and can not be read".format(url))
elif mode == WRITE_NEW and existant:
logging.error("File '%s' already existing and can not be\
created", url)
raise Exception("File '%s' already existing and can not be\
raise IOError("File '%s' already existing and can not be\
created", url)
elif mode == READ_WRITE and not existant:
logging.warning(
......
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