diff --git a/src/qibo/config.py b/src/qibo/config.py index 6cdbb91af5..015c2a7a50 100644 --- a/src/qibo/config.py +++ b/src/qibo/config.py @@ -35,7 +35,7 @@ MAX_ITERATIONS = 50 -def raise_error(exception, message=None, args=None): +def raise_error(exception, message=None): """Raise exception with logging error. Args: @@ -43,10 +43,7 @@ def raise_error(exception, message=None, args=None): message (str): the error message. """ log.error(message) - if args: - raise exception(message, args) - else: - raise exception(message) + raise exception(message) def get_batch_size():