|
KLog.log("could not delete function '%s', unknown error: %s" % str(e), "critical") |
>>> try:
... raise ValueError
... except Exception as e:
... print("could not delete function '%s', unknown error: %s" % str(e))
...
Traceback (most recent call last):
File "<input>", line 2, in <module>
ValueError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<input>", line 4, in <module>
TypeError: not enough arguments for format string
# minimal example
>>> "could not delete function '%s', unknown error: %s" % "Exception string..."
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: not enough arguments for format string
It seems like adding self.func as the first string might be the answer:
KLog.log("could not delete function '%s', unknown error: %s" % (self.func, str(e)), "critical")
krampus/kinder/lambda_funcs.py
Line 36 in 738f006
It seems like adding
self.funcas the first string might be the answer: