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

Gallopsled / pwntools / 5414192245

pending completion
5414192245

push

github-actions

web-flow
Merge branch 'dev' into process-env-add-2

3968 of 6662 branches covered (59.56%)

1672 of 1672 new or added lines in 79 files covered. (100.0%)

12134 of 16979 relevant lines covered (71.46%)

0.71 hits per line

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

45.45
/pwnlib/exception.py
1
__all__ = ['PwnlibException']
1✔
2
import sys
1✔
3
import traceback
1✔
4

5

6
class PwnlibException(Exception):
1✔
7
    '''Exception thrown by :func:`pwnlib.log.error`.
8

9
    Pwnlib functions that encounters unrecoverable errors should call the
10
    :func:`pwnlib.log.error` function instead of throwing this exception directly.'''
11
    def __init__(self, msg, reason = None, exit_code = None):
1✔
12
        '''bar'''
13
        Exception.__init__(self, msg)
1✔
14
        self.reason = reason
1✔
15
        self.exit_code = exit_code
1✔
16
        self.message = msg
1✔
17

18
    def __repr__(self):
1✔
19
        s = 'PwnlibException: %s' % self.message
×
20
        if self.reason:
×
21
            s += '\nReason:\n'
×
22
            s += ''.join(traceback.format_exception(*self.reason))
×
23
        elif sys.exc_info()[0] not in [None, KeyboardInterrupt]:
×
24
            s += '\n'
×
25
            s += ''.join(traceback.format_exc())
×
26
        return s
×
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

© 2025 Coveralls, Inc