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

Clinical-Genomics / cg / 10402441987

15 Aug 2024 10:28AM UTC coverage: 83.615%. First build
10402441987

Pull #3569

github

web-flow
Merge da1ca9546 into 3afe609fc
Pull Request #3569: add(microbial fastq order submitter)

29 of 68 new or added lines in 4 files covered. (42.65%)

18432 of 22044 relevant lines covered (83.61%)

0.97 hits per line

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

50.0
/cg/utils/error_handler.py
1
"""Module that holds a generic error handling decorator."""
2

3
from cg.exc import CgError
1✔
4

5

6
def handle_errors(to_except: tuple, to_raise):
1✔
7
    """Handle errors for the Post processing services."""
8

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

18
        return wrapper
1✔
19

20
    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