Skip to content

Commit

Permalink
Assert message update
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Nov 21, 2023
1 parent f07eb4a commit db2a680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradingstrategy/pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def __init__(self,
We cannot properly resolve pairs unless we can map exchange names to their ids.
Currently optional, only needed by `get_pair()`.
"""
assert isinstance(df, pd.DataFrame)
assert isinstance(df, pd.DataFrame), f"Expected DataFrame, gor {df.__class__}"
self.df = df.set_index(df["pair_id"])

#: pair_id -> raw dict data mappings
Expand Down

0 comments on commit db2a680

Please sign in to comment.