Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.extension
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
Model registry
Operate
Environments
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
bob
bob.extension
Merge requests
!140
[download] better error message
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[download] better error message
download
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Amir MOHAMMADI
requested to merge
download
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
ef47f9c7
1 commit,
2 years ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bob/extension/download.py
+
2
−
1
Options
@@ -279,8 +279,9 @@ def get_file(
if
file_hash
is
not
None
and
not
validate_file
(
final_filename
,
file_hash
,
algorithm
=
hash_algorithm
):
found_hash
=
_hash_file
(
final_filename
,
algorithm
=
hash_algorithm
)
raise
ValueError
(
"
File was
downloaded
, but it is corrupted
. Please re-do the procedure.
"
f
"
The
downloaded
file:
{
final_filename
}
has the hash of
{
found_hash
}
, but we expected
{
file_hash
}
. Please re-do the procedure.
"
)
return
final_filename
Loading