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 importers misbehaving when given a file instead of a directory #530

Merged
merged 2 commits into from
Oct 28, 2021
Merged

Fix importers misbehaving when given a file instead of a directory #530

merged 2 commits into from
Oct 28, 2021

Conversation

IRDonch
Copy link

@IRDonch IRDonch commented Oct 28, 2021

Summary

CocoImporter and MotsImporter crash with an exception when given a path
to a file (a non-JSON file in the case of CocoImporter). Make them return
an empty result instead.

How to test

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

`CocoImporter` and `MotsImporter` crash with an exception when given a path
to a file (a non-JSON file in the case of `CocoImporter`). Make them return
an empty result instead.
@zhiltsov-max zhiltsov-max merged commit f1fca8a into openvinotoolkit:develop Oct 28, 2021
@IRDonch IRDonch deleted the crashing-importers branch November 22, 2021 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants