lib/pycall/pyerror.rb in pycall-0.1.0.alpha.20170311 vs lib/pycall/pyerror.rb in pycall-0.1.0.alpha.20170317

- old
+ new

@@ -22,10 +22,10 @@ attr_reader :type, :value, :traceback def to_s "#{type}: #{value}".tap do |msg| - unless traceback&.null? + unless traceback.nil? || traceback.null? if (o = PyCall.format_traceback(traceback)) msg.concat("\n", *o) end end end