Skip to content

Commit

Permalink
Merge pull request #1393 from henrykironde/fix-test-attribute
Browse files Browse the repository at this point in the history
Check for attributes using hasattr(args, 'hash_value')
  • Loading branch information
ethanwhite committed Oct 29, 2019
2 parents 34bc859 + 507ea3b commit b51e2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retriever/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def main():
else:
raise Exception("no dataset specified.")
if scripts:
if args.dataset.endswith('.zip') or args.hash_value:
if args.dataset.endswith('.zip') or hasattr(args, 'hash_value'):
_install(vars(args), debug=debug, use_cache=use_cache)
return
for dataset in scripts:
Expand Down

0 comments on commit b51e2cd

Please sign in to comment.