/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/cethread.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import sys
20
20
import threading
21
21
 
22
 
from .sixish import (
23
 
    reraise,
24
 
)
25
 
 
26
22
 
27
23
class CatchingExceptionThread(threading.Thread):
28
24
    """A thread that keeps track of exceptions.
145
141
            if (self.ignored_exceptions is None
146
142
                    or not self.ignored_exceptions(exc_value)):
147
143
                # Raise non ignored exceptions
148
 
                reraise(exc_class, exc_value, exc_tb)
 
144
                raise exc_value
149
145
 
150
146
    def pending_exception(self):
151
147
        """Raise the caught exception.