Skip to content

Commit

Permalink
Merge pull request #239 from soay/kb
Browse files Browse the repository at this point in the history
fix pid unpublication issue
  • Loading branch information
sashakames authored Sep 12, 2024
2 parents a07785a + c747aeb commit 063579c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/esgcet/esgunpublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,12 @@ def run():
if (upub.check_for_pid_proj(args["dataset_id_lst"])):
try:
pid_creds = config['pid_creds']
args["pid_creds"] = pid_creds
creds_lst = []
for it in pid_creds:
rec = pid_creds[it]
rec['url'] = it
creds_lst.append(rec)
args["pid_creds"] = creds_lst
except:
publog.exception("PID credentials not defined. Define in config file esg.ini.")
exit(1)
Expand Down

0 comments on commit 063579c

Please sign in to comment.