yeboo commented on issue #5528:
URL: 
https://github.com/apache/dolphinscheduler/issues/5528#issuecomment-845278344


   @ruanwenjun Yes,  it's a must-see. I'm just using the traceback.print_exc() 
method to output exceptions in my program. This is my own log information:
   
   Python Language Exception :
   
   `Traceback (most recent call last):
     File "/zzz/formula_math.py", line 467, in mathSocre
       "result": func.custom_eval(node, data)
     File "/zzz/formula_math.py", line 118, in custom_eval
       return _convert(node_or_string)
     File "/zzz/formula_math.py", line 75, in _convert
       rs = self.cmp_opt[type(node.ops[0])](_convert(node.left), 
_convert(node.comparators[0]))
     File "/zzz/formula_math.py", line 75, in _convert
       rs = self.cmp_opt[type(node.ops[0])](_convert(node.left), 
_convert(node.comparators[0]))
   TypeError: '<=' not supported between instances of 'int' and 'NoneType'
   Traceback (most recent call last):
     File "/zzz/formula_math.py", line 467, in mathSocre
       "result": func.custom_eval(node, data)
     File "/zzz/formula_math.py", line 118, in custom_eval
       return _convert(node_or_string)
     File "/zzz/formula_math.py", line 75, in _convert
       rs = self.cmp_opt[type(node.ops[0])](_convert(node.left), 
_convert(node.comparators[0]))
     File "/zzz/formula_math.py", line 75, in _convert
       rs = self.cmp_opt[type(node.ops[0])](_convert(node.left), 
_convert(node.comparators[0]))
   TypeError: '<=' not supported between instances of 'float' and 'NoneType'
   Traceback (most recent call last):
     File "/zzz/formula_math.py", line 467, in mathSocre
       "result": func.custom_eval(node, data)`
   
   Although I don't think it has anything to do with my own printed exceptions.
   
   The point is that I output a lot of exception logs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to