Skip to content

Commit

Permalink
Merge pull request #33 from ENCODE-DCC/dev
Browse files Browse the repository at this point in the history
v0.4.3
  • Loading branch information
leepc12 authored Nov 7, 2022
2 parents 2c8942e + 22e006a commit 5f96f8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autouri/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .s3uri import S3URI

__all__ = ["AbsPath", "AutoURI", "URIBase", "GCSURI", "HTTPURL", "S3URI"]
__version__ = "0.4.2"
__version__ = "0.4.3"
3 changes: 3 additions & 0 deletions autouri/s3uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def _acquire(self):
status = e.response["ResponseMetadata"]["HTTPStatusCode"]
if status in (403,):
raise
except TypeError:
# this happens if file exists and failed to get metadata, so u.mtime is None
pass
return None

def _release(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_race_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ def test_race_cond_autouri_write_gcs(gcs_test_path):


def test_race_cond_autouri_write_s3(s3_test_path):
nth = 5
nth = 3
prefix = os.path.join(s3_test_path, "test_race_cond_autouri_write_s3")
run_write_v6_txt(prefix, nth)

0 comments on commit 5f96f8a

Please sign in to comment.