Skip to content

Commit

Permalink
Bug fix handling empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed Jan 25, 2022
1 parent 4f80ff4 commit 15c1a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions igv/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def igv_tool(genome, tracks=None, indices=None, track_format=None, track_type=No
browser.show(navbar=True)

# Ensure tracks and indices are represented as lists
if tracks is None: tracks = []
if indices is None: indices = []
if not tracks: tracks = []
if not indices: indices = []
if type(tracks) == str: tracks = [tracks]
if type(indices) == str: indices = [indices]

Expand Down

0 comments on commit 15c1a84

Please sign in to comment.