Skip to content

Commit

Permalink
Merge pull request #1394 from henrykironde/return-provenance
Browse files Browse the repository at this point in the history
Return log values in commit_log
  • Loading branch information
ethanwhite committed Oct 29, 2019
2 parents a1aff77 + b89e780 commit 2f1a4d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions retriever/lib/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,10 @@ def commit_log(dataset):
print('\nCommit message:', commit_value[1][0])
print('Hash:', commit_value[1][1])
print('Date:', commit_value[0].strftime("%m/%d/%Y, %H:%M:%S"))
else:
print("No logs for {}".format(dataset))
return sorted_log

print("No logs for {}".format(dataset))
except Exception as e:
print("Unable to generate log for", dataset)
print(e)
return None

0 comments on commit 2f1a4d9

Please sign in to comment.