• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Clinical-Genomics / cg / 10387727026

14 Aug 2024 12:39PM UTC coverage: 84.734%. First build
10387727026

Pull #3453

github

web-flow
Merge 06482a3bc into 9a7798fb0
Pull Request #3453: feature(dev-branch-pacbio)

525 of 574 new or added lines in 34 files covered. (91.46%)

21691 of 25599 relevant lines covered (84.73%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/cg/services/run_devices/error_handler.py
1
"""Module that holds the error handlers for the Post Processing service."""
2

3
import logging
1✔
4

5
from cg.exc import CgError
1✔
6

7
LOG = logging.getLogger(__name__)
1✔
8

9

10
def handle_post_processing_errors(to_except: tuple, to_raise):
1✔
11
    """Handle errors for the Post processing services."""
12

13
    def error_handling(fn):
1✔
14
        def wrapper(*args, **kwargs):
1✔
15
            try:
1✔
16
                return fn(*args, **kwargs)
1✔
17
            except to_except as error:
1✔
18
                raise to_raise(error) from error
1✔
NEW
19
            except Exception as error:
×
NEW
20
                raise CgError(f"{error}") from error
×
21

22
        return wrapper
1✔
23

24
    return error_handling
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc