You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discussed an issue with @jdice where he saw a DeprecationWarning (raised here when job.get_id() is called) being treated as an exception in the run command (exception handling here). DeprecationWarning inherits from Warning, which inherits from Exception, thus deprecation warnings are treated like uncaught errors in the handler for Exception which is undesired behavior.
This specific problem was probably introduced with aggregation in 0.15, and may be resolved by #558, but the underlying problem probably affects all warnings and not just those related to the deprecated job.get_id().
To reproduce
TODO: Create minimal failing example of project.py that manually raises a DeprecationWarning, and see what happens in the traceback (make sure --show-traceback is disabled). Also check to see what happens if a warning is issued followed by an actual error. In my understanding of the problem, this may cause the warning to appear instead of the real error.
Error output
TODO
The text was updated successfully, but these errors were encountered:
Description
I discussed an issue with @jdice where he saw a
DeprecationWarning
(raised here whenjob.get_id()
is called) being treated as an exception in therun
command (exception handling here).DeprecationWarning
inherits fromWarning
, which inherits fromException
, thus deprecation warnings are treated like uncaught errors in the handler forException
which is undesired behavior.This specific problem was probably introduced with aggregation in 0.15, and may be resolved by #558, but the underlying problem probably affects all warnings and not just those related to the deprecated
job.get_id()
.To reproduce
TODO: Create minimal failing example of
project.py
that manually raises a DeprecationWarning, and see what happens in the traceback (make sure--show-traceback
is disabled). Also check to see what happens if a warning is issued followed by an actual error. In my understanding of the problem, this may cause the warning to appear instead of the real error.Error output
TODO
The text was updated successfully, but these errors were encountered: