From f424be79cd09723ef8f500ba5df2d4e3f5070ea9 Mon Sep 17 00:00:00 2001 From: Dan Puttick Date: Tue, 11 Jul 2017 14:45:12 -0400 Subject: [PATCH] Move KittenGroomerError to end of file --- kittengroomer/helpers.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/kittengroomer/helpers.py b/kittengroomer/helpers.py index e8a7328..09be7cd 100644 --- a/kittengroomer/helpers.py +++ b/kittengroomer/helpers.py @@ -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')