<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BioErrorLog</author_name>
  <author_url>https://blog.hatena.ne.jp/BioErrorLog/</author_url>
  <blog_title>BioErrorLog Tech Blog</blog_title>
  <blog_url>https://www.bioerrorlog.work/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>boto3</anon>
    <anon>AWS SDK</anon>
    <anon>Python</anon>
    <anon>クラウド</anon>
  </categories>
  <description>boto3でエラーハンドリングする方法を整理します。 はじめに boto3でエラーハンドリングする client.exceptions botocore.exceptions コード例 おわりに 参考 はじめに boto3で発生するエラーをcatchしようとしたときに、少しハマったことがありました。 例えば以下のコードを実行すると、examplebucketという名前のS3バケットが既に存在しているため、BucketAlreadyExistsエラーが吐かれます。 import boto3 client = boto3.client('s3') client.create_bucket( Buc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.bioerrorlog.work%2Fentry%2Fcatch-boto3-exceptions&quot; title=&quot;boto3でエラーハンドリングする方法をまとめる | AWS SDK for Python - BioErrorLog Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/B/BioErrorLog/20211017/20211017151950.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-17 15:21:39</published>
  <title>boto3でエラーハンドリングする方法をまとめる | AWS SDK for Python</title>
  <type>rich</type>
  <url>https://www.bioerrorlog.work/entry/catch-boto3-exceptions</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
