Fix error args

This commit is contained in:
Tim Van Baak 2020-03-30 21:33:24 -07:00
parent 288e3dacd6
commit 74c4c7dbbf

View File

@ -4,13 +4,13 @@ class AmanuensisError(Exception):
class MissingConfigError(AmanuensisError):
"""A config file is missing that was expected to be present"""
def __init__(self, path):
super().__init__(self, "A config file or directory was expected to "
super().__init__("A config file or directory was expected to "
f"exist, but could not be found: {path}")
class ConfigAlreadyExistsError(AmanuensisError):
"""Attempted to create a config, but it already exists"""
def __init__(self, path):
super().__init__(self, "Attempted to create a config, but it already "
super().__init__("Attempted to create a config, but it already "
f"exists: {path}")
class MalformedConfigError(AmanuensisError):