Skip to content

Commit

Permalink
Enclose password in '' to work with datedown 0.3.
Browse files Browse the repository at this point in the history
This could be a problem if somebody has a ' in their password.
  • Loading branch information
Christoph Paulik committed Feb 22, 2017
1 parent 8c9e4f1 commit bf4d66e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gldas/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ def main(args):
down_func = partial(download,
num_proc=args.n_proc,
username=args.username,
password=args.password,
recursive=True)
password="'" + args.password + "'",
recursive=True,
filetypes=["grb", "xml"])
download_by_dt(dts, url_create_fn,
Expand Down

0 comments on commit bf4d66e

Please sign in to comment.