Skip to content
This repository
Browse code

Small tweak to exception handling in roboto stuff.

  • Loading branch information...
commit 6ea03796b3f3fd8d2f0674dadb74eb5a0b7b4bb8 1 parent f93cfa2
Mitch Garnaat authored September 13, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  boto/roboto/awsqueryrequest.py
4  boto/roboto/awsqueryrequest.py
@@ -26,6 +26,7 @@
26 26
 import optparse
27 27
 import copy
28 28
 import boto.exception
  29
+import boto.roboto.awsqueryservice
29 30
 
30 31
 import bdb
31 32
 import traceback
@@ -437,6 +438,9 @@ def do_cli(self):
437 438
         except self.ServiceClass.ResponseError, err:
438 439
             print 'Error(%s): %s' % (err.error_code, err.error_message)
439 440
             sys.exit(1)
  441
+        except boto.roboto.awsqueryservice.NoCredentialsError, err:
  442
+            print 'Unable to find credentials.'
  443
+            sys.exit(1)
440 444
         except:
441 445
             print 'Unexpected error.  Use --debugger option for more info.'
442 446
             sys.exit(1)

0 notes on commit 6ea0379

Please sign in to comment.
Something went wrong with that request. Please try again.