Skip to content

Commit 26b3a82

Browse files
author
Vladimir Kotal
committed
fix pylint reported problems
1 parent 2a3a1da commit 26b3a82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opengrok-tools/src/main/python/opengrok_tools/utils/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def close(self):
257257
if self.timeout:
258258
e = timeout_thread.get_exception()
259259
if e:
260-
raise e
260+
raise e # pylint: disable=E0702
261261

262262
except KeyboardInterrupt:
263263
self.logger.info("Got KeyboardException while processing ",
@@ -391,5 +391,5 @@ def log_error(self, msg):
391391
self.getretcode()))
392392
else:
393393
self.logger.error("{}: command {} in directory {} ended with "
394-
"invalid state".
394+
"invalid state {}".
395395
format(msg, self.cmd, self.work_dir, self.state))

opengrok-tools/src/main/python/opengrok_tools/utils/opengrok.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def delete_project(logger, project, uri):
132132
urllib.parse.quote_plus(project)))
133133

134134
if not r:
135-
logger.error('could not delete project in web application on {}'.
135+
logger.error('could not delete project {} in web application on {}'.
136136
format(project, uri))
137137
return False
138138

0 commit comments

Comments
 (0)