question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't swallow ClientError when bucket doesn't exist

See original GitHub issue

In smart_open.s3.BufferedOutputBase.__init__() (lines 339-342) why does this library swallow the botocore ClientError and return a ValueError? It makes it tricky to handle the error case properly.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
FragLegscommented, Mar 15, 2018

Great! I’ll issue one as soon as I can. Thanks!

0reactions
menshikh-ivcommented, Mar 14, 2018

@FragLegs

Would it make sense to put some info about the ClientError in the raised ValueError?

This is definitely a good idea, PR are welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I improve my function to be more memory efficient?
I've given my Lambda 3GB RAM but the lambda is running out of memory before it can process any files (Each file is...
Read more >
Metaflow/community - metaflow_org/community - Gitter
If not, it is possible that your S3 bucket is not configured properly. You can see it with metaflow configure show , line...
Read more >
boto Documentation - Read the Docs
Do not validate bucket when copying a key (issue 1763, commit 5505113) ... exception if the domain you are looking for doesn't exist....
Read more >
Is it possible to create a S3 Bucket in us-east-1 using AWS ...
Documentation import logging import boto3 from botocore.exceptions import ClientError def create_bucket(bucket_name, region=None): try: if region is None: ...
Read more >
mongodb | Yarn - Package Manager
4.12.1 (2022-11-23). Bug Fixes. NODE-4830: lazily import aws module (#3476 (ff375e9); NODE-4831: check map value is not undefined (#3477 (9795cdb) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found