Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I'd suggest using Black to format the code. While there are a number of formatters, it helps to pick one to make the code consistent. (See https://github.com/psf/black) The use of .update({"excep...
Answer
#1: Initial revision
I'd suggest using Black to format the code. While there are a number of formatters, it helps to pick one to make the code consistent. (See https://github.com/psf/black) The use of `.update({"exception": ...})` to insert a single item into a dictionary seems a bit of avoidable overhead. The name `log_record_dict` -- with a kind of type name at the end -- is something often called "Hungarian Notation". (https://en.wikipedia.org/wiki/Hungarian_notation) This is something that is often avoided in Python programming.