From 696076e131f28e36a81af4a65210785d721d2f6c Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Fri, 29 May 2020 09:34:56 +0200 Subject: [PATCH] error function moved to logger --- esbo_etc/lib/helpers.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/esbo_etc/lib/helpers.py b/esbo_etc/lib/helpers.py index bc98d57..74aef13 100644 --- a/esbo_etc/lib/helpers.py +++ b/esbo_etc/lib/helpers.py @@ -1,6 +1,3 @@ -import logging -import sys -import traceback import numpy as np from astropy.io import ascii from astropy.table import Table @@ -8,27 +5,6 @@ import astropy.units as u import re -def error(msg: str, exit_: bool = True): - """ - Handle errors - - Parameters - ---------- - msg : str - Error message to show - exit_ : bool - Exit program - - Returns - ------- - - """ - logging.error(msg) - if exit_: - traceback.print_stack() - sys.exit(1) - - def isLambda(obj: object): """ Check if a object is of type lambda