Skip to content

Commit

Permalink
use bare Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovecchietti committed Nov 23, 2023
1 parent 7c5f987 commit 942951a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyaedt/modules/Boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
import copy
import re

import pywintypes

from pyaedt.application.Variables import decompose_variable_value
from pyaedt.generic.DataHandlers import _dict2arg
from pyaedt.generic.DataHandlers import random_string
from pyaedt.generic.constants import CATEGORIESQ3D
from pyaedt.generic.general_methods import GrpcApiError
from pyaedt.generic.general_methods import PropsManager
from pyaedt.generic.general_methods import _dim_arg
from pyaedt.generic.general_methods import filter_tuple
Expand Down Expand Up @@ -4517,6 +4514,6 @@ def _create_boundary(bound):
bound._app._boundaries[bound.name] = bound
return bound
else: # pragma : no cover
raise SystemExit
except (GrpcApiError, SystemExit, pywintypes.com_error): # pragma: no cover
raise Exception

Check warning on line 4517 in pyaedt/modules/Boundary.py

View check run for this annotation

Codecov / codecov/patch

pyaedt/modules/Boundary.py#L4517

Added line #L4517 was not covered by tests
except Exception: # pragma: no cover
return None

0 comments on commit 942951a

Please sign in to comment.