Skip to content

Commit

Permalink
fix: 修复探测 https 捕获少异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shabbywu committed Jan 7, 2022
1 parent 3fde58f commit d1b4d61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moby_distribution/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from moby_distribution.spec.image_json import ImageJSON
from moby_distribution.spec.manifest import ManifestSchema1, ManifestSchema2, OCIManifestSchema1

__version__ = "0.4.0"
__version__ = "0.4.1"
__ALL__ = [
"DockerRegistryV2Client",
"Blob",
Expand Down
2 changes: 2 additions & 0 deletions moby_distribution/spec/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def is_secure_repository(self) -> Tuple[bool, bool]:
elif e.reason == "WRONG_VERSION_NUMBER":
return False, False
return False, False
except OSError:
return False, False
return True, True

@property
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "moby-distribution"
version = "0.4.0"
version = "0.4.1"
description = "Yet another moby(docker) distribution implement by python."
authors = ["shabbywu <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit d1b4d61

Please sign in to comment.