Move KittenGroomerError to end of file

pull/16/head
Dan Puttick 2017-07-11 14:45:12 -04:00
parent 7b8b175a93
commit f424be79cd
1 changed files with 13 additions and 13 deletions

View File

@ -16,19 +16,6 @@ import argparse
import magic
class KittenGroomerError(Exception):
"""Base KittenGroomer exception handler."""
def __init__(self, message):
super(KittenGroomerError, self).__init__(message)
self.message = message
class ImplementationRequired(KittenGroomerError):
"""Implementation required error."""
pass
class FileBase(object):
"""
Base object for individual files in the source directory.
@ -336,6 +323,19 @@ class KittenGroomerBase(object):
raise ImplementationRequired('Please implement processdir.')
class KittenGroomerError(Exception):
"""Base KittenGroomer exception handler."""
def __init__(self, message):
super(KittenGroomerError, self).__init__(message)
self.message = message
class ImplementationRequired(KittenGroomerError):
"""Implementation required error."""
pass
def main(kg_implementation, description='Call a KittenGroomer implementation to process files present in the source directory and copy them to the destination directory.'):
parser = argparse.ArgumentParser(prog='KittenGroomer', description=description)
parser.add_argument('-s', '--source', type=str, help='Source directory')