@classmethod
def sanitize_errstr(cls, err):
    """
        Replaces curly braces in the string representation of an exception so
        that string formatting does not attempt to replace the fields with
        format values

        :param errstr: The string to sanitize
                       This is typically aquired from a caught error
        """
    return str(err).replace('{', '{{').replace('}', '}}')
