Skip to content

Commit

Permalink
Make history parameter check more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ttt733 committed May 15, 2019
1 parent e9f79c6 commit ce43613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylivetrader/data/bardata.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def fetch(asset, field):

def history(self, assets, fields, bar_count, frequency):

if not assets and fields:
if not (assets and fields):
return None

if isinstance(fields, str):
Expand Down

0 comments on commit ce43613

Please sign in to comment.