/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-03 23:21:15 UTC
  • mfrom: (7290.42.6 paramiko-compat)
  • Revision ID: breezy.the.bot@gmail.com-20200203232115-g7k11bhsfeiqcprv
Fix compatibility with newer versions of paramiko, which break on noise before keys in pem files.

Merged from https://code.launchpad.net/~jelmer/brz/paramiko-compat/+merge/378480

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
 
22
26
 
23
27
class CatchingExceptionThread(threading.Thread):
24
28
    """A thread that keeps track of exceptions.
141
145
            if (self.ignored_exceptions is None
142
146
                    or not self.ignored_exceptions(exc_value)):
143
147
                # Raise non ignored exceptions
144
 
                raise exc_value
 
148
                reraise(exc_class, exc_value, exc_tb)
145
149
 
146
150
    def pending_exception(self):
147
151
        """Raise the caught exception.