Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Apr 25, 2018
1 parent 676f5fb commit 72fd160
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alignak/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def run_external_commands(self, cmds):
self.external_commands_manager.resolve_command(ExternalCommand(command))
statsmgr.counter('external_commands.got.count', len(cmds))
statsmgr.timer('external_commands.got.time', time.time() - _t0)
except Exception as exp:
except Exception as exp: # pylint: disable=broad-except
logger.warning("External command parsing error: %s", exp)

def add_brok(self, brok, broker_uuid=None):
Expand Down
2 changes: 1 addition & 1 deletion alignak/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def load_statsd(self):
return False

logger.info('StatsD server contacted')
return True
return True

def connect(self, name, _type, host='localhost', port=2003,
prefix='alignak', enabled=False, broks_enabled=False):
Expand Down

0 comments on commit 72fd160

Please sign in to comment.