File: _deffered_error.py

package info (click to toggle)
nc-py-api 0.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,320 kB
  • sloc: python: 12,415; makefile: 238; xml: 100; javascript: 56; sh: 14
file content (11 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""DeferredError class taken from PIL._util.py file."""


class DeferredError:  # pylint: disable=too-few-public-methods
    """Allow failing import when using it in the client mode, without `app` dependencies."""

    def __init__(self, ex):
        self.ex = ex

    def __getattr__(self, elt):
        raise self.ex