~ntt-pf-lab/nova/lp703037

« back to all changes in this revision

Viewing changes to nova/twistd.py

  • Committer: Hisaharu Ishii
  • Date: 2011-01-21 11:04:02 UTC
  • mfrom: (572.1.25 nova)
  • Revision ID: ishii.hisaharu@lab.ntt.co.jp-20110121110402-29ict0qj0qvdl4dm
Merged with rev597

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
            try:
157
157
                self.parseArgs(*argv)
158
158
            except TypeError:
159
 
                raise usage.UsageError("Wrong number of arguments.")
 
159
                raise usage.UsageError(_("Wrong number of arguments."))
160
160
 
161
161
            self.postOptions()
162
162
            return args
220
220
            time.sleep(0.1)
221
221
    except OSError, err:
222
222
        err = str(err)
223
 
        if err.find("No such process") > 0:
 
223
        if err.find(_("No such process")) > 0:
224
224
            if os.path.exists(pidfile):
225
225
                os.remove(pidfile)
226
226
        else: