trivial: fix assignment-from-no-return pylint warning (#52732)

This commit is contained in:
Frédéric Péters 2021-04-02 22:39:49 +02:00
parent 575a06e6d2
commit 1a611d0ce7
2 changed files with 1 additions and 3 deletions

View File

@ -8,7 +8,6 @@ cache-size=500
disable=
abstract-method,
arguments-differ,
assignment-from-no-return,
attribute-defined-outside-init,
broad-except,
consider-using-dict-comprehension,

View File

@ -405,7 +405,7 @@ class FormDef(StorableObject):
# or if there are not yet any submitted forms
if self.id is None or self.data_class().count() == 0:
self.internal_identifier = new_internal_identifier
t = StorableObject.store(self)
StorableObject.store(self)
if get_publisher().snapshot_class:
get_publisher().snapshot_class.snap(instance=self, comment=comment)
if get_publisher().is_using_postgresql():
@ -413,7 +413,6 @@ class FormDef(StorableObject):
sql.do_formdef_tables(self, rebuild_views=True, rebuild_global_views=True)
self.store_related_custom_views()
return t
def store_related_custom_views(self):
for view in getattr(self, '_custom_views', []):