def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def get_except(self, func, *args):
        try:
            func(*args)
        except Exception as detail:
            return detail.__class__, str(detail)