Skip to content

Commit bccd805

Browse files
committed
Improve recordset presentation
1 parent 81ac0c3 commit bccd805

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pydevd_plugins/extensions/pydevd_plugin_odoo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ def get_dictionary(self, obj):
3030
return defaultResolver.get_dictionary(obj)
3131

3232
def get_str(self, val):
33-
if not val:
34-
return ''
3533
s = str(val.ids)
3634
if len(val) == 1:
37-
name = getattr(val, 'name')
35+
name = getattr(val, 'name', None)
3836
if name:
3937
s += ' ⇨ %s' % name
4038
return s

0 commit comments

Comments
 (0)