Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop hiding exceptions #307

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions volumina/pixelpipeline/datasources/lazyflowsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def wrapper(*args, **kwargs):
return func(*args, **kwargs)
except Slot.SlotNotReadyError as ex:
# Translate lazyflow not-ready errors into the volumina equivalent.
raise_with_traceback(IndeterminateRequestError(ex)).with_traceback(sys.exc_info()[2])
raise IndeterminateRequestError() from ex

wrapper.__wrapped__ = func # Emulate python 3 behavior of @functools.wraps
return wrapper
Expand Down Expand Up @@ -105,11 +105,10 @@ def __init__(self, outslot, priority=0):

# Attach an OpReorderAxes to ensure the data will display correctly
# (We include the graph parameter, too, since tests sometimes provide an operator with no parent.)
self._op5 = opReorderAxes.OpReorderAxes(
parent=outslot.operator.parent, graph=outslot.operator.graph
)
self._op5 = opReorderAxes.OpReorderAxes(parent=outslot.operator.parent, graph=outslot.operator.graph)
self._op5.Input.connect(outslot)
self._op5.AxisOrder.setValue("txyzc")
self._op5.name = "reorder_lazyflow_source_to_volumina"

self._priority = priority
self._dirtyCallback = partial(weakref_setDirtyLF, weakref.ref(self))
Expand Down
2 changes: 1 addition & 1 deletion volumina/tiling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def _fetch_layer_tile(self, timestamp, ims, transform, tile_nr, stack_id, ims_re
if stack_id == self._current_stack_id and cache is self._cache:
self.sceneRectChanged.emit(tile_rect)
except BaseException:
logger.debug("Failed to fetch layer tile", exc_info=True)
raise

def _onLayerDirty(self, dirtyImgSrc, dataRect):
"""
Expand Down