Skip to content

Commit fd70ac2

Browse files
committed
1 parent 7ab4073 commit fd70ac2

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

pymode/libs/pylama/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:license: BSD, see LICENSE for more details.
66
"""
77

8-
__version__ = "7.0.5"
8+
__version__ = "7.0.6"
99
__project__ = "pylama"
1010
__author__ = "Kirill Klenov <horneds@gmail.com>"
1111
__license__ = "GNU LGPL"

pymode/libs/pylama/lint/extensions.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@
2626
except ImportError:
2727
pass
2828

29-
try:
30-
from pkg_resources import iter_entry_points
3129

32-
for entry in iter_entry_points('pylama.linter'):
33-
if entry.name not in LINTERS:
30+
from pkg_resources import iter_entry_points
31+
32+
for entry in iter_entry_points('pylama.linter'):
33+
if entry.name not in LINTERS:
34+
try:
3435
LINTERS[entry.name] = entry.load()()
35-
except ImportError:
36-
pass
36+
except ImportError:
37+
pass
3738

3839
# pylama:ignore=E0611

pymode/lint.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77

88

99
from pylama.lint.extensions import LINTERS
10-
from pylama.lint.pylama_pylint import Linter
1110

12-
LINTERS['pylint'] = Linter()
11+
try:
12+
from pylama.lint.pylama_pylint import Linter
13+
LINTERS['pylint'] = Linter()
14+
except Exception: # noqa
15+
pass
1316

1417

1518
def code_check():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy