Skip to content

Commit

Permalink
refactor: removed args argument from raise_error
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Feb 21, 2024
1 parent ee515a5 commit 5e3f025
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/qibo/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,15 @@
MAX_ITERATIONS = 50


def raise_error(exception, message=None, args=None):
def raise_error(exception, message=None):
"""Raise exception with logging error.
Args:
exception (Exception): python exception.
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():
Expand Down

0 comments on commit 5e3f025

Please sign in to comment.