Skip to content

Commit

Permalink
Fix a nasty bug in sra tools if you try to dl more than 50 or 60 samp…
Browse files Browse the repository at this point in the history
…les.
  • Loading branch information
isaacovercast committed Aug 11, 2018
1 parent b918ee8 commit dff31a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ipyrad/analysis/sratools.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ def run(self,
dry_run=dry_run,
)

except IPyradWarningExit as inst:
print(inst)
## exceptions to catch, cleanup and handle ipyclient interrupts
except KeyboardInterrupt:
print("keyboard interrupt...")

except Exception as inst:
print("Exception in run() - {}".format(inst))
finally:
## reset working sra path
self._restore_vdbconfig_path()
Expand Down Expand Up @@ -368,7 +371,7 @@ def fetch_runinfo(self, fields=None, quiet=False):
if o:
vals = o.strip().split("\n")
names = vals[0].split(",")
items = [i.split(",") for i in vals[1:]]
items = [i.split(",") for i in vals[1:] if i not in ["", vals[0]]]
return pd.DataFrame(items, columns=names)
else:
raise IPyradWarningExit("no samples found in {}".format(self.accession))
Expand Down

0 comments on commit dff31a5

Please sign in to comment.