1
0
Fork 0

management/commands/fetch_data: Locally disable redefined-builtin pylint error (W0622)

In Python 3.3 ConnectionError was added as subclass in python builtins,
see PEP3151 or [1] for more details.

[1]: https://docs.python.org/3/whatsnew/3.3.html#pep-3151-reworking-the-os-and-io-exception-hierarchy

Fixes redefined-builtin (W0622) pylint error.

Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
merge-requests/868/head
Fabian P. Schmidt 2020-01-02 21:52:46 +01:00 committed by Alfredos-Panagiotis Damkalis
parent 283b994a67
commit 903b264814
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,6 @@ disable=
W0107, # unnecessary-pass
W0201, # attribute-defined-outside-init
W0621, # redefined-outer-name
W0622, # redefined-builtin
W0703, # broad-except
W1308, # duplicate-string-formatting-argument
W1505, # deprecated-method

View File

@ -2,7 +2,8 @@
from __future__ import absolute_import
from django.core.management.base import BaseCommand, CommandError
from requests.exceptions import ConnectionError
# Remove this import after Python 3 migration
from requests.exceptions import ConnectionError # pylint: disable=W0622
from network.base.tasks import fetch_data