summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/disabled.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/msd/disabled.py')
-rw-r--r--kvmd/plugins/msd/disabled.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/kvmd/plugins/msd/disabled.py b/kvmd/plugins/msd/disabled.py
index 13def45e..ab076cd4 100644
--- a/kvmd/plugins/msd/disabled.py
+++ b/kvmd/plugins/msd/disabled.py
@@ -77,6 +77,15 @@ class Plugin(BaseMsd):
raise MsdDisabledError()
@contextlib.asynccontextmanager
+ async def read_image(self, name: str) -> AsyncGenerator[int, None]:
+ if self is not None: # XXX: Vulture and pylint hack
+ raise MsdDisabledError()
+ yield 1
+
+ async def read_image_chunk(self) -> bytes:
+ raise MsdDisabledError()
+
+ @contextlib.asynccontextmanager
async def write_image(self, name: str, size: int) -> AsyncGenerator[int, None]:
if self is not None: # XXX: Vulture and pylint hack
raise MsdDisabledError()