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

utils: unmask exception on create_file_name #35

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

david-caro
Copy link
Member

  • When failing to create the NamedTemporaryFile on the output dir,
    the original exception was masked by another one thrown in the
    finally block. (closes Masked exception #34)

Signed-off-by: David Caro david@dcaro.es

@david-caro
Copy link
Member Author

The failures on travis don't seem to be related to the patch, I'll try to investigate, but if anybody has an idea is more than welcome.

@david-caro
Copy link
Member Author

@inveniosoftware/integrators

@david-caro
Copy link
Member Author

@inveniosoftware/integrators ping?

@jirikuncar
Copy link
Member

@david-caro tests are not passing.

@david-caro
Copy link
Member Author

@jirikuncar yes, but it's complaining about a docstring in a function that was not even touched by this patch:

Warning, treated as error:

/home/travis/build/inveniosoftware/invenio-oaiharvester/docs/api.rst:52: WARNING: error while formatting arguments for invenio_oaiharvester.tasks.get_specific_records: 'NoneType' object is not callable

* When failing to create the `NamedTemporaryFile` on the output dir,
  the original exception was masked by another one thrown in the
  `finally` block. (closes inveniosoftware#34)

Signed-off-by: David Caro <david@dcaro.es>
@david-caro david-caro merged commit 75c0bcf into inveniosoftware:master Nov 21, 2017
@david-caro david-caro deleted the unmask_exception branch November 21, 2017 18:47
@david-caro david-caro restored the unmask_exception branch November 21, 2017 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Masked exception
2 participants