This file is indexed.

/usr/lib/python3/dist-packages/wormhole/errors.py is in magic-wormhole 0.10.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
from __future__ import unicode_literals

class WormholeError(Exception):
    """Parent class for all wormhole-related errors"""

class UnsendableFileError(Exception):
    """
    A file you wanted to send couldn't be read, maybe because it's not
    a file, or because it's a symlink that points to something
    that doesn't exist.

    To ignore this kind of error, you can run wormhole with the
    --ignore-unsendable-files flag.
    """

class ServerError(WormholeError):
    """The relay server complained about something we did."""

class ServerConnectionError(WormholeError):
    """We had a problem connecting to the relay server:"""
    def __init__(self, url, reason):
        self.url = url
        self.reason = reason
    def __str__(self):
        return str(self.reason)

class Timeout(WormholeError):
    pass

class WelcomeError(WormholeError):
    """
    The relay server told us to signal an error, probably because our version
    is too old to possibly work. The server said:"""
    pass

class LonelyError(WormholeError):
    """wormhole.close() was called before the peer connection could be
    established"""

class WrongPasswordError(WormholeError):
    """
    Key confirmation failed. Either you or your correspondent typed the code
    wrong, or a would-be man-in-the-middle attacker guessed incorrectly. You
    could try again, giving both your correspondent and the attacker another
    chance.
    """
    # or the data blob was corrupted, and that's why decrypt failed
    pass

class KeyFormatError(WormholeError):
    """
    The key you entered contains spaces or was missing a dash. Magic-wormhole
    expects the numerical nameplate and the code words to be separated by
    dashes. Please reenter the key you were given separating the words with
    dashes.
    """

class ReflectionAttack(WormholeError):
    """An attacker (or bug) reflected our outgoing message back to us."""

class InternalError(WormholeError):
    """The programmer did something wrong."""

class WormholeClosedError(InternalError):
    """API calls may not be made after close() is called."""

class TransferError(WormholeError):
    """Something bad happened and the transfer failed."""

class NoTorError(WormholeError):
    """--tor was requested, but 'txtorcon' is not installed."""

class NoKeyError(WormholeError):
    """w.derive_key() was called before got_verifier() fired"""

class OnlyOneCodeError(WormholeError):
    """Only one w.generate_code/w.set_code/w.input_code may be called"""

class MustChooseNameplateFirstError(WormholeError):
    """The InputHelper was asked to do get_word_completions() or
    choose_words() before the nameplate was chosen."""
class AlreadyChoseNameplateError(WormholeError):
    """The InputHelper was asked to do get_nameplate_completions() after
    choose_nameplate() was called, or choose_nameplate() was called a second
    time."""
class AlreadyChoseWordsError(WormholeError):
    """The InputHelper was asked to do get_word_completions() after
    choose_words() was called, or choose_words() was called a second time."""
class AlreadyInputNameplateError(WormholeError):
    """The CodeInputter was asked to do completion on a nameplate, when we
    had already committed to a different one."""
class WormholeClosed(Exception):
    """Deferred-returning API calls errback with WormholeClosed if the
    wormhole was already closed, or if it closes before a real result can be
    obtained."""

class _UnknownPhaseError(Exception):
    """internal exception type, for tests."""
class _UnknownMessageTypeError(Exception):
    """internal exception type, for tests."""