Skip to content

Minor issue: errors do not follow intended path due to int conversion fail on empty string #535

@benkamphaus

Description

@benkamphaus

Hi! Thanks for TIA Toolbox, we've found it incredibly useful.

We ran into a minor issue recently I thought I'd report in case it's helpful.

tuple(int(part) for part in scale.get("version", "").split("."))
for scale in multiscales
)
omero_version = tuple(int(part) for part in omero.get("version", "").split("."))

If the version key is missing, these fail on the attempted type conversion of empty string to integer and throw there rather than reaching an expected error handling path.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions