Skip to content

Commit

Permalink
remove list instance check
Browse files Browse the repository at this point in the history
Co-authored-by: Tom C (DLS) <[email protected]>
  • Loading branch information
aureocarneiro and coretl authored Aug 8, 2023
1 parent 5db1e37 commit 3c473c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pandablocks/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,10 @@ class Append(Command[None]):
value: List[str]

def execute(self) -> ExchangeGenerator[None]:
if isinstance(self.value, list):
# Multiline table with blank line to terminate
ex = Exchange([f"{self.field}<<"] + self.value + [""])
yield ex
assert ex.line == "OK"
# Multiline table with blank line to terminate
ex = Exchange([f"{self.field}<<"] + self.value + [""])
yield ex
assert ex.line == "OK"


class Arm(Command[None]):
Expand Down

0 comments on commit 3c473c2

Please sign in to comment.