Skip to content

Commit

Permalink
Remove duplicate except clause (#56)
Browse files Browse the repository at this point in the history
* Fix duplicate except clause (merge error)

* Bump version
  • Loading branch information
HarmvZ authored Oct 20, 2021
1 parent 9c2875a commit f075e54
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 0.5.2 (2021-10-20)

* Fix duplicate except clause

## 0.5.1 (2021-10-04)

* Fix default values for extra metadata fields
Expand Down
2 changes: 1 addition & 1 deletion panimg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.5.1"
__version__ = "0.5.2"

import logging

Expand Down
4 changes: 0 additions & 4 deletions panimg/image_builders/metaio_mhd_mha.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ def format_error(message: str) -> str:

try:
simple_itk_image = load_sitk_image(file.absolute())
except ValidationError as e:
file_errors[file].append(
format_error(f"Could not validate file. {e}")
)
except RuntimeError:
file_errors[file].append(
format_error("SimpleITK could not open file.")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ commands =

[tool.poetry]
name = "panimg"
version = "0.5.1"
version = "0.5.2"
description = "Conversion of medical images to MHA and TIFF."
license = "Apache-2.0"
authors = ["James Meakin <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_panimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == "0.5.1"
assert __version__ == "0.5.2"

0 comments on commit f075e54

Please sign in to comment.