Skip to content
Draft
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
2 changes: 2 additions & 0 deletions boostedblob/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ async def edit(path: str, read_only: bool = False) -> None:
async with bbb.BoostExecutor(DEFAULT_CONCURRENCY) as executor:
try:
await bbb.copyfile(path_obj, local, executor)
except bbb.request.HostNotFoundError:
raise
except FileNotFoundError:
print("File not found, creating new file...")
with open(local, "w"):
Expand Down
3 changes: 3 additions & 0 deletions boostedblob/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
from .xml import dict_to_xml, etree


class HostNotFoundError(FileNotFoundError): ...


@dataclass(frozen=True)
class RawRequest:
method: str
Expand Down