Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 553134800
Change-Id: I9880dbd0ee617d37bb884cedabe591f44120e58b
  • Loading branch information
Acme Contributor authored and Copybara-Service committed Aug 2, 2023
1 parent fb87fd5 commit 95b7cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/adders/reverb/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def add(self,
extras: types.NestedArray = ()):
"""Record an action and the following timestep."""

if not self._writer.step_is_open:
if self._writer is None or not self._writer.step_is_open:
raise ValueError('adder.add_first must be called before adder.add.')

# Add the timestep to the buffer.
Expand Down

0 comments on commit 95b7cfe

Please sign in to comment.