Skip to content

Commit

Permalink
fix value
Browse files Browse the repository at this point in the history
  • Loading branch information
semiversus committed Jun 1, 2021
1 parent bd9eb2d commit 67b6272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broqer/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, init=NONE):

def emit(self, value: Any,
who: Publisher = None) -> None: # pylint: disable=unused-argument
if self._originator is not None and self._originator != who:
if self._originator is not None and self._originator is not who:
raise ValueError('Emit from non assigned publisher')

return Publisher.notify(self, value)

0 comments on commit 67b6272

Please sign in to comment.