Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in datatransfer #154

Merged
merged 1 commit into from
Jan 17, 2023
Merged
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: 1 addition & 1 deletion fink_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion fink_client/scripts/fink_datatransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down