This file is indexed.

/usr/lib/python3/dist-packages/beanbag/bbexcept.py is in python3-beanbag 1.9.2-1ubuntu1.

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
#!/usr/bin/env python

# Copyright (c) 2014 Red Hat, Inc. and/or its affiliates.
# Copyright (c) 2015 Anthony Towns
# Written by Anthony Towns <aj@erisian.com.au>
# See LICENSE file.


class BeanBagException(Exception):
    """Exception thrown when a BeanBag request fails.

       Data members:
         * msg      -- exception string, brief and human readable
         * response -- response object

       You can get the original request via bbe.response.request.
    """

    __slots__ = ('msg', 'response')

    def __init__(self, response, msg):
        """Create a BeanBagException"""

        self.msg = msg
        self.response = response

    def __repr__(self):
        return "%s(%s,%r)" % (self.__class__.__name__, self.msg,
          self.response)

    def __str__(self):
        msg = self.msg
        if self.response and hasattr(self.response, "content"):
            msg = "%s - response: %s" % (self.msg, self.response.content)
        return msg