github
70 of 118 new or added lines in 13 files covered. (59.32%)
2127 of 2442 relevant lines covered (87.1%)
0.87 hits per line
NEW
|
import logging |
× |
NEW
|
from functools import wraps |
× |
3 |
|
|
NEW
|
from trailblazer.exc import AnalysisServiceError |
× |
NEW
|
from trailblazer.exc import JobServiceError |
× |
6 |
|
|
NEW
|
LOG = logging.getLogger(__name__) |
× |
8 |
|
|
9 |
|
|
NEW
|
def handle_analysis_service_errors(func): |
× |
11 |
|
|
NEW
|
@wraps(func)
|
× |
NEW
|
def wrapper(*args, **kwargs): |
× |
NEW
|
try:
|
× |
NEW
|
return func(*args, **kwargs)
|
× |
NEW
|
except JobServiceError as error: |
× |
NEW
|
raise AnalysisServiceError(error) from error |
× |
18 |
|
|
NEW
|
return wrapper
|
× |