Skip to content

Commit 94340c1

Browse files
committed
fix: proper return values to become lint clean
1 parent 7846065 commit 94340c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyodata/v2/model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,8 @@ def association(self, association_name, namespace=None):
10181018
except KeyError:
10191019
pass
10201020

1021+
raise KeyError('Association does not exist')
1022+
10211023
@property
10221024
def associations(self):
10231025
return list(itertools.chain(*(decl.list_associations() for decl in list(self._decls.values()))))
@@ -1048,6 +1050,8 @@ def association_set(self, set_name, namespace=None):
10481050
except KeyError:
10491051
pass
10501052

1053+
raise KeyError('Association set does not exist')
1054+
10511055
@property
10521056
def association_sets(self):
10531057
return list(itertools.chain(*(decl.list_association_sets() for decl in list(self._decls.values()))))

0 commit comments

Comments
 (0)