Skip to content

Conversation

@aminalaee
Copy link
Contributor

No description provided.

@aminalaee aminalaee marked this pull request as draft September 29, 2023 15:03
PyObject* modDict = PyModule_GetDict(mod); // borrowed reference
PyObject* raiseExceptions = PyDict_GetItemString(modDict, "raiseExceptions"); // PyDict_GetItemString returns a borrowed reference
if (PyBool_Check(raiseExceptions) && PyErr_Occurred()) {
PyErr_Print();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to format the exception probably the same way the Formatter does, with all frames.

record = picologging.LogRecord(
"test", picologging.INFO, __file__, 1, "test", (), None, None, None
)
with pytest.raises(AttributeError):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't raise any errors with standard logging module. And also was not fixed in this PR.

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.

1 participant