Permalink
Browse files

Small tweak to exception handling in roboto stuff.

  • Loading branch information...
1 parent f93cfa2 commit 6ea03796b3f3fd8d2f0674dadb74eb5a0b7b4bb8 @garnaat garnaat committed Sep 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 boto/roboto/awsqueryrequest.py
View
4 boto/roboto/awsqueryrequest.py
@@ -26,6 +26,7 @@
import optparse
import copy
import boto.exception
+import boto.roboto.awsqueryservice
import bdb
import traceback
@@ -437,6 +438,9 @@ def do_cli(self):
except self.ServiceClass.ResponseError, err:
print 'Error(%s): %s' % (err.error_code, err.error_message)
sys.exit(1)
+ except boto.roboto.awsqueryservice.NoCredentialsError, err:
+ print 'Unable to find credentials.'
+ sys.exit(1)
except:
print 'Unexpected error. Use --debugger option for more info.'
sys.exit(1)

0 comments on commit 6ea0379

Please sign in to comment.