diff --git a/openfl-workspace/keras_cnn_mnist/src/tfmnist_inmemory.py b/openfl-workspace/keras_cnn_mnist/src/tfmnist_inmemory.py index bbad002681..51f4ccf739 100644 --- a/openfl-workspace/keras_cnn_mnist/src/tfmnist_inmemory.py +++ b/openfl-workspace/keras_cnn_mnist/src/tfmnist_inmemory.py @@ -28,10 +28,10 @@ def __init__(self, data_path, batch_size, **kwargs): # collaborator list. try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/keras_cnn_with_compression/src/tfmnist_inmemory.py b/openfl-workspace/keras_cnn_with_compression/src/tfmnist_inmemory.py index f932502e31..80b913e5f5 100644 --- a/openfl-workspace/keras_cnn_with_compression/src/tfmnist_inmemory.py +++ b/openfl-workspace/keras_cnn_with_compression/src/tfmnist_inmemory.py @@ -28,10 +28,10 @@ def __init__(self, data_path, batch_size, **kwargs): # collaborator list. try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/torch_cnn_histology/src/dataloader.py b/openfl-workspace/torch_cnn_histology/src/dataloader.py index b0655cf5f0..fa4ae86778 100644 --- a/openfl-workspace/torch_cnn_histology/src/dataloader.py +++ b/openfl-workspace/torch_cnn_histology/src/dataloader.py @@ -39,10 +39,10 @@ def __init__(self, data_path, batch_size, **kwargs): try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/torch_cnn_mnist/src/dataloader.py b/openfl-workspace/torch_cnn_mnist/src/dataloader.py index 0557e81af4..3f3eeeb0bb 100644 --- a/openfl-workspace/torch_cnn_mnist/src/dataloader.py +++ b/openfl-workspace/torch_cnn_mnist/src/dataloader.py @@ -28,10 +28,10 @@ def __init__(self, data_path, batch_size, **kwargs): try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/torch_cnn_mnist_eden_compression/src/ptmnist_inmemory.py b/openfl-workspace/torch_cnn_mnist_eden_compression/src/ptmnist_inmemory.py index ecd9f777e4..74c8ec5d03 100644 --- a/openfl-workspace/torch_cnn_mnist_eden_compression/src/ptmnist_inmemory.py +++ b/openfl-workspace/torch_cnn_mnist_eden_compression/src/ptmnist_inmemory.py @@ -29,10 +29,10 @@ def __init__(self, data_path, batch_size, **kwargs): try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/torch_cnn_mnist_fed_eval/src/ptmnist_inmemory.py b/openfl-workspace/torch_cnn_mnist_fed_eval/src/ptmnist_inmemory.py index 0438e5d812..324545a763 100644 --- a/openfl-workspace/torch_cnn_mnist_fed_eval/src/ptmnist_inmemory.py +++ b/openfl-workspace/torch_cnn_mnist_fed_eval/src/ptmnist_inmemory.py @@ -29,10 +29,10 @@ def __init__(self, data_path, batch_size, **kwargs): try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/torch_cnn_mnist_straggler_check/src/ptmnist_inmemory.py b/openfl-workspace/torch_cnn_mnist_straggler_check/src/ptmnist_inmemory.py index 508bea12d0..ccf234239c 100644 --- a/openfl-workspace/torch_cnn_mnist_straggler_check/src/ptmnist_inmemory.py +++ b/openfl-workspace/torch_cnn_mnist_straggler_check/src/ptmnist_inmemory.py @@ -28,10 +28,10 @@ def __init__(self, data_path, batch_size, **kwargs): # of collaborator list. try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path ) diff --git a/openfl-workspace/torch_unet_kvasir/src/data_loader.py b/openfl-workspace/torch_unet_kvasir/src/data_loader.py index 9d454b28af..0f968808e4 100644 --- a/openfl-workspace/torch_unet_kvasir/src/data_loader.py +++ b/openfl-workspace/torch_unet_kvasir/src/data_loader.py @@ -124,10 +124,10 @@ def __init__(self, data_path, batch_size, **kwargs): try: int(data_path) - except ValueError: + except: raise ValueError( - "Expected `%s` to be representable as `int`, as it refers to the data shard " - + "number used by the collaborator.", + "Expected `%s` to be representable as `int`, as it refers to the data shard " + + "number used by the collaborator.", data_path )