From 0954846752e36703e245dd5287f99a7bbfd1dd68 Mon Sep 17 00:00:00 2001 From: JulienPeloton Date: Tue, 17 Jan 2023 19:57:39 +0100 Subject: [PATCH] Fix bug in datatransfer --- fink_client/__init__.py | 2 +- fink_client/scripts/fink_datatransfer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fink_client/__init__.py b/fink_client/__init__.py index ecfd130..d9ff20a 100644 --- a/fink_client/__init__.py +++ b/fink_client/__init__.py @@ -12,5 +12,5 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "3.0" +__version__ = "3.1" __schema_version__ = "distribution_schema_fink_ztf_{}.avsc" diff --git a/fink_client/scripts/fink_datatransfer.py b/fink_client/scripts/fink_datatransfer.py index 11104b2..4fa9e26 100755 --- a/fink_client/scripts/fink_datatransfer.py +++ b/fink_client/scripts/fink_datatransfer.py @@ -84,7 +84,7 @@ def main(): # Time to wait before polling again if no alerts maxtimeout = conf['maxtimeout'] - if args.limit < args.batchsize: + if (args.limit is not None) and (args.limit < args.batchsize): args.batchsize = args.limit # Instantiate a consumer