Skip to content

Commit

Permalink
Try to fix #597
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Sep 8, 2015
1 parent af42681 commit 33cc3c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions pymode/libs/logilab/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion pymode/libs/pylama/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:license: BSD, see LICENSE for more details.
"""

__version__ = "7.0.3"
__version__ = "7.0.4"
__project__ = "pylama"
__author__ = "Kirill Klenov <horneds@gmail.com>"
__license__ = "GNU LGPL"
8 changes: 4 additions & 4 deletions pymode/libs/pylama/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
"""
errors = []
fileconfig = dict()
lname = 'undefined'
params = dict()
linters = LINTERS
linters_params = dict()
lname = 'undefined'
params = dict()
path = op.relpath(path, rootdir)

if options:
linters = options.linters
Expand All @@ -35,7 +36,6 @@ def run(path='', code=None, rootdir=CURDIR, options=None):

try:
with CodeContext(code, path) as ctx:
path = op.relpath(path, rootdir)
code = ctx.code
params = prepare_params(parse_modeline(code), fileconfig, options)
LOGGER.debug('Checking params: %s', params)
Expand Down Expand Up @@ -71,7 +71,7 @@ def run(path='', code=None, rootdir=CURDIR, options=None):
Error(linter=lname, lnum=e.lineno, col=e.offset, text=e.args[0],
filename=path))

except Exception as e:
except Exception as e: # noqa
import traceback
LOGGER.info(traceback.format_exc())

Expand Down

0 comments on commit 33cc3c0

Please sign in to comment.