Skip to content

Commit

Permalink
Merge pull request #530 from HoshinoKoji/patch-1
Browse files Browse the repository at this point in the history
Fix error message
  • Loading branch information
chaoming0625 committed Nov 1, 2023
2 parents 8d523da + ae4ba0a commit dcf91e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainpy/_src/dyn/projections/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def check_post_attrs(self, *attrs):
if not isinstance(attr, str):
raise TypeError(f'Must be string. But got {attr}.')
if not hasattr(self.post, attr):
raise ValueError(f'{self} need "pre" neuron group has attribute "{attr}".')
raise ValueError(f'{self} need "post" neuron group has attribute "{attr}".')

def update(self, *args, **kwargs):
"""The function to specify the updating rule.
Expand Down

0 comments on commit dcf91e3

Please sign in to comment.