Skip to content

Commit 8118c6d

Browse files
committed
clearer output messaging
1 parent 7e976cd commit 8118c6d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dvcurator/github.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ def create_project(dv, project_name, token, repo=None):
131131
contact_info = 'Depositor: ' + dataset_contact + '\n'
132132
contact_info += 'DV link: ' + link
133133

134-
print(f"Project Name: {project_name}")
135-
print(f"Link: {link}")
136-
print(f"Contact Info: {contact_info}")
137-
138134
url = f"https://api.github.com/repos/{repo}/actions/workflows/new_project.yml/dispatches"
139135
headers = {
140136
"Accept": "application/vnd.github.v3+json",
@@ -158,4 +154,6 @@ def create_project(dv, project_name, token, repo=None):
158154
print(f"HTTP error occurred: {http_err}")
159155
print(f"Response Content: {response.content}")
160156
except Exception as err:
161-
print(f"Other error occurred: {err}")
157+
print(f"Other error occurred: {err}")
158+
159+
print("Project creation request sent successfully.")

dvcurator/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def load_config(self, path=None):
137137
self.gh_token.set(config['default']['github_token'])
138138
self.dropbox.set(config['default']['dropbox'])
139139
self.dropbox_entry.config(text=os.path.split(self.dropbox.get())[1])
140-
print("Loaded settings: " + path)
140+
print("Loaded settings: " + os.path.basename(path))
141141
print("Curation repo: " + self.curation_repo.get())
142142

143143
# function to save settings as .ini file

0 commit comments

Comments
 (0)