• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

django-import-export / django-import-export / 15833405581

23 Jun 2025 07:33PM UTC coverage: 99.912%. Remained the same
15833405581

push

github

web-flow
Prepare release 4.3.8 (#2074)

* updated messages

* prepare release 4.3.8

2280 of 2282 relevant lines covered (99.91%)

4.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/import_export/exceptions.py
1
class ImportExportError(Exception):
5✔
2
    """A generic exception for all others to extend."""
3

4
    pass
5✔
5

6

7
class FieldError(ImportExportError):
5✔
8
    """Raised when a field encounters an error."""
9

10
    pass
5✔
11

12

13
class WidgetError(ImportExportError):
5✔
14
    """Raised when there is a misconfiguration with a Widget."""
15

16
    pass
5✔
17

18

19
class ImportError(ImportExportError):
5✔
20
    def __init__(self, error, number=None, row=None):
5✔
21
        """A wrapper for errors thrown from the import process.
22

23
        :param error: The underlying error that occurred.
24
        :param number: The row number of the row containing the error (if obtainable).
25
        :param row: The row containing the error (if obtainable).
26
        """
27
        self.error = error
5✔
28
        self.number = number
5✔
29
        self.row = row
5✔
30

31
    def __str__(self):
5✔
32
        s = ""
5✔
33
        if self.number is not None:
5✔
34
            s += f"{self.number}: "
5✔
35
        s += f"{self.error}"
5✔
36
        if self.row is not None:
5✔
37
            s += f" ({self.row})"
5✔
38
        return s
5✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc