Fix error args

This commit is contained in:
Tim Van Baak 2020-03-30 21:33:24 -07:00
parent 288e3dacd6
commit 74c4c7dbbf
1 changed files with 2 additions and 2 deletions

View File

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