Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
095a72e9
Commit
095a72e9
authored
11 months ago
by
Gokhan OZBULAK
Browse files
Options
Downloads
Patches
Plain Diff
Remove try/catch block for auth, no need it
#60
.
parent
d7b67bb6
No related branches found
No related tags found
No related merge requests found
Pipeline
#86382
failed
11 months ago
Stage: qa
Stage: test
Stage: doc
Stage: dist
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mednet/scripts/upload.py
+2
-8
2 additions, 8 deletions
src/mednet/scripts/upload.py
with
2 additions
and
8 deletions
src/mednet/scripts/upload.py
+
2
−
8
View file @
095a72e9
...
@@ -32,14 +32,8 @@ def _get_gitlab_config():
...
@@ -32,14 +32,8 @@ def _get_gitlab_config():
token
=
input
(
f
"
{
server
}
(user or project) token:
"
)
token
=
input
(
f
"
{
server
}
(user or project) token:
"
)
gl
=
gitlab
.
Gitlab
(
server
,
private_token
=
token
,
api_version
=
"
4
"
)
gl
=
gitlab
.
Gitlab
(
server
,
private_token
=
token
,
api_version
=
"
4
"
)
config
=
{
"
idiap
"
:
{
"
private_token
"
:
token
}}
config
=
{
"
idiap
"
:
{
"
private_token
"
:
token
}}
# try to authenticate with given credential.
# test authentication with given credential.
try
:
gl
.
auth
()
gl
.
auth
()
except
:
logger
.
error
(
"
Gitlab credential issue, authentication failed.
"
)
raise
RuntimeError
(
f
"
There is a Gitlab credential issue that must be fixed before uploading.
"
)
return
gl
,
config
return
gl
,
config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment