Revision 7260cfbe daemons/ganeti-watcher

b/daemons/ganeti-watcher
27 27

  
28 28
"""
29 29

  
30
# pylint: disable-msg=C0103,W0142
31

  
32
# C0103: Invalid name ganeti-watcher
33

  
30 34
import os
31 35
import sys
32 36
import time
......
115 119
        self._data = {}
116 120
      else:
117 121
        self._data = serializer.Load(state_data)
118
    except Exception, msg:
122
    except Exception, msg: # pylint: disable-msg=W0703
119 123
      # Ignore errors while loading the file and treat it as empty
120 124
      self._data = {}
121 125
      logging.warning(("Invalid state file. Using defaults."
......
369 373
          try:
370 374
            logging.info("Activating disks for instance %s", instance.name)
371 375
            instance.ActivateDisks()
372
          except Exception:
376
          except Exception: # pylint: disable-msg=W0703
373 377
            logging.exception("Error while activating disks for instance %s",
374 378
                              instance.name)
375 379

  
......
400 404
                        instance.name, last)
401 405
          instance.Restart()
402 406
          self.started_instances.add(instance.name)
403
        except Exception:
407
        except Exception: # pylint: disable-msg=W0703
404 408
          logging.exception("Error while restarting instance %s",
405 409
                            instance.name)
406 410

  
......
464 468
  """Main function.
465 469

  
466 470
  """
467
  global client
471
  global client # pylint: disable-msg=W0603
468 472

  
469 473
  options, args = ParseOptions()
470 474

  

Also available in: Unified diff