Closed XenonPy closed 1 month ago
Fixed with PR.
you can use the Exception
object catched by the except
statement and have it processed by your warning.warn()
or warning.error()
method, whichever :
try:
raise NotImplemented("test")
except Exception as error:
warning.error(error)
@almostDemoPy This seems more pythonic, could you fork this and make the changes (if you have time im really busy rn)? I can make a PR
@XenonPy regards this, you can take a look at my library's own logging module. Logger.error()
requires an Exception
object passed as parameter
i'm not home rn so can't do anything yet
What I mean by this is that because you're calling it with
raise
, it stops the program. We need to usewarnings.warn()
self-assigned this, currently working on it