Skip to content

Commit

Permalink
Use sys.exit instead of raising SystemExit
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Aug 4, 2014
1 parent bc126af commit 0cb1bf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/fetch_file
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#
import sys


if __name__ == "__main__":
from optparse import OptionParser
usage = """%prog [options] URI
Expand All @@ -34,7 +37,7 @@ The URI can be either an HTTP URL, or "s3://bucket_name/key_name"
(options, args) = parser.parse_args()
if len(args) < 1:
parser.print_help()
raise SystemExit(1)
sys.exit(1)
from boto.utils import fetch_file
f = fetch_file(args[0])
if options.outfile:
Expand Down

0 comments on commit 0cb1bf2

Please sign in to comment.