Skip to content
Merged
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
14 changes: 11 additions & 3 deletions intern/convenience/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import psutil
import warnings

from requests.exceptions import HTTPError

import numpy as np
from PIL import Image

Expand Down Expand Up @@ -914,9 +916,15 @@ def _infer_volume_provider(channel: Union[ChannelResource, str, Tuple]):
if isinstance(channel, str):
if channel.startswith("bossdb://"):
channel_uri = _parse_bossdb_uri(channel)
channel_obj = _BossDBVolumeProvider().get_channel(
channel_uri.channel, channel_uri.collection, channel_uri.experiment
)
try:
channel_obj = _BossDBVolumeProvider().get_channel(
channel_uri.channel, channel_uri.collection, channel_uri.experiment
)
except HTTPError:
# If the resource is not found, it is probably because we are
# creating a new resource...
return _BossDBVolumeProvider()

if channel_obj.raw["storage_type"] == "cloudvol" and HAS_CLOUDVOLUME:
return _CloudVolumeOpenDataVolumeProvider(
{
Expand Down
Loading