Skip to content

Commit

Permalink
Stop printing full backtrace when light data lambda fails
Browse files Browse the repository at this point in the history
Since this occurs naturally for 2 blocks, the backtrace is just noise.
  • Loading branch information
Pokechu22 committed Nov 12, 2020
1 parent f66607c commit ea15fc5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions burger/toppings/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from jawa.util.descriptor import method_descriptor

from burger.util import WalkerCallback, walk_method, try_eval_lambda
import traceback

import six.moves

Expand Down Expand Up @@ -268,10 +267,9 @@ def on_invokedynamic(self, ins, const, args):
try:
args.append(object()) # The state that the lambda gets
return try_eval_lambda(ins, args, lcf)
except:
except Exception as ex:
if verbose:
print("Failed to call lambda")
traceback.print_exc()
print("Failed to call lambda for light data:", ex)
return None
else:
return object()
Expand Down

0 comments on commit ea15fc5

Please sign in to comment.