This website works better with JavaScript.
Home
Explore
Help
Sign In
er1n
/
bandcamp-collection-downloader
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix remaining TODO exception handling
master
Gwendal
7 years ago
parent
f2347ed1cc
commit
5f648f58a7
2 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/main/kotlin/bandcampcollectiondownloader/BandcampCollectionDownloader.kt
+1
-0
src/test/kotlin/bandcampcollectiodownloader/test/BandcampCollectionDownloaderTests.kt
+ 1
- 1
src/main/kotlin/bandcampcollectiondownloader/BandcampCollectionDownloader.kt
View File
@ -134,7 +134,7 @@ fun downloadAll(cookiesFile: Path, bandcampUser: String, downloadFormat: String,
if
(
e
.
statusCode
=
=
404
)
{
throw
BandCampDownloaderError
(
"The bandcamp user '$bandcampUser' does not exist."
)
}
else
{
throw
Exc
e
ption
(
"TODO"
)
throw
e
}
}
println
(
""
"Found collection page: "
$
{
doc
.
title
(
)
}
""
""
)
+ 1
- 0
src/test/kotlin/bandcampcollectiodownloader/test/BandcampCollectionDownloaderTests.kt
View File
@ -53,4 +53,5 @@ class BandcampCollectionDownloaderTests {
downloadAll
(
Paths
.
get
(
"./test-data/wellformedcookies.json"
)
,
"bli"
,
"bli"
,
Paths
.
get
(
"bli"
)
)
}
}
}
Write
Preview
Loading…
Cancel
Save