[Answer]-Get_or_create throwing intermittent tuple error not callable

1πŸ‘

βœ…

I think your diagnosis of this problem is wrong. The error is telling you that a tuple is not callable. Logging something does not mean calling it, and created is not a tuple (it’s a bool).

I suspect that somewhere in your code you are accidentally doing something like this:

logging.info = my_tuple

instead of

logging.info(my_tuple)

which is causing info to refer to a tuple from that point on, rather than the original method.

Leave a comment