Skip to content

Commit

Permalink
FIX #216
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 31, 2019
1 parent 37c9224 commit 13e805f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apstools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,10 @@ def replay(headers, callback=None):
"bec", # get from IPython shell
BestEffortCallback(), # make one, if we must
)
if isinstance(headers, databroker.Header):
headers = tuple(headers)
for h in headers:
_headers = headers # do not mutate the input arg
if isinstance(_headers, databroker.Header):
_headers = [_headers]
for h in _headers:
if not isinstance(h, databroker.Header):
emsg = f"Must be a databroker Header: received: {type(h)}: |{h}|"
raise TypeError(emsg)
Expand Down

0 comments on commit 13e805f

Please sign in to comment.