We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b4e68 commit 7e24d76Copy full SHA for 7e24d76
examples/import_git.py
@@ -68,8 +68,15 @@ def run():
68
publish_data_package(arguments.link)
69
elif arguments.type == 'multiple':
70
urls = get_all_git_url(arguments.link)
71
+ failed = []
72
for k, v in urls.items():
- publish_data_package(git_url=v, count=k)
73
+ try:
74
+ publish_data_package(git_url=v, count=k)
75
+ except Exception as e:
76
+ failed.append({'dataset': v, 'error': e})
77
+ print ('\nWarning: Following datasets were skiped as failed to publish:\n')
78
+ for package in failed:
79
+ print ('---\n\nDataSet: %s\n\nREASON: %s' %(package.get('dataset'), package.get('error')))
80
81
if os.path.isdir(DIR_NAME_PREFIX):
82
shutil.rmtree(DIR_NAME_PREFIX)
0 commit comments