| Index: commit_queue.py
|
| diff --git a/commit_queue.py b/commit_queue.py
|
| index 2166e20c5138e57bf0364a9d7366889a1835a008..853a2a9d865d507d6f408aadce74e21b21bb922b 100755
|
| --- a/commit_queue.py
|
| +++ b/commit_queue.py
|
| @@ -72,10 +72,10 @@ def main():
|
| level=level,
|
| format='%(asctime)s %(levelname)7s %(message)s')
|
| root_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'workdir')
|
| - if not os.path.isdir(root_dir):
|
| - os.makedirs(root_dir)
|
| -
|
| - gaia_creds = creds.Credentials(os.path.join(root_dir, '.gaia_pwd'))
|
| + gaia_file = os.path.join(root_dir, '.gaia_pwd')
|
| + if not os.path.isfile(gaia_file):
|
| + parser.error('Please read workdir/README.')
|
| + gaia_creds = creds.Credentials(gaia_file)
|
| rietveld_obj = rietveld.Rietveld(
|
| 'http://codereview.chromium.org',
|
| 'commit-bot@chromium.org',
|
|
|