Skip to content

Commit

Permalink
Individually try and import extensions.
Browse files Browse the repository at this point in the history
Individually try and import extensions.
  • Loading branch information
AnkurDedania committed Sep 15, 2015
1 parent 42207af commit cf726f6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pylama/lint/extensions.py
Expand Up @@ -26,13 +26,14 @@
except ImportError:
pass

try:
from pkg_resources import iter_entry_points

for entry in iter_entry_points('pylama.linter'):
if entry.name not in LINTERS:
from pkg_resources import iter_entry_points

for entry in iter_entry_points('pylama.linter'):
if entry.name not in LINTERS:
try:
LINTERS[entry.name] = entry.load()()
except ImportError:
pass
except ImportError:
pass

# pylama:ignore=E0611

0 comments on commit cf726f6

Please sign in to comment.