From 64cb297a067a2511a2f1681226bb4461b1a6d00c Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 22 Sep 2022 07:55:31 +0200 Subject: [PATCH] HasIO: automatic creation of io from uri fails attached io in HasIO must not be mandatory - either uri or io has to be given Change-Id: Id39e40f98020d4051c1ad8105f6af6018aafaea8 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/29349 Tested-by: Jenkins Automated Tests Reviewed-by: Enrico Faulhaber Reviewed-by: Markus Zolliker --- secop/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secop/io.py b/secop/io.py index 26c572a..1552049 100644 --- a/secop/io.py +++ b/secop/io.py @@ -47,7 +47,7 @@ class SilentError(CommunicationFailedError): class HasIO(Module): """Mixin for modules using a communicator""" - io = Attached() + io = Attached(mandatory=False) # either io or uri must be given uri = Property('uri for automatic creation of the attached communication module', StringType(), default='')