Hello!! I did more tests and you're right. It works well when returning null values
Thanks!!!! El viernes, 3 de agosto de 2018, 20:08:53 (UTC-3), Anthony escribió: > > On Friday, August 3, 2018 at 4:23:05 PM UTC-4, fiubarc wrote: >> >> Hi, im getting AttributeError if the value returned by a virtual method >> is none.. >> >> There is some way to get the none value or i always have to check >> ['virtualfield'] is in db.table >> > > I believe the virtual field should be in the Row if it returns a value > (even if the value is None), but it will not be present in the Row if the > virtual field function throws an exception because some of the fields it > needs are missing. Are you sure all the necessary fields are present and > the function is not generating an AttributeError or KeyError exception? > > Anthony > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

