File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/prof7bit/bitcoin/wallettool/fileformats Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import com.google.common.base.Charsets
7
7
import com.google.common.io.Files
8
8
import java.io.File
9
9
import java.math.BigInteger
10
+ import org.json.JSONException
10
11
import org.json.JSONObject
11
12
import org.slf4j.Logger
12
13
import org.slf4j.LoggerFactory
@@ -20,8 +21,8 @@ import org.spongycastle.crypto.paddings.PaddedBufferedBlockCipher
20
21
import org.spongycastle.crypto.params.ParametersWithIV
21
22
import org.spongycastle.util.encoders.Base64
22
23
import prof7bit.bitcoin.wallettool.core.KeyObject
23
- import prof7bit.bitcoin.wallettool.exceptions.NeedSecondaryPasswordException
24
24
import prof7bit.bitcoin.wallettool.exceptions.FormatFoundNeedPasswordException
25
+ import prof7bit.bitcoin.wallettool.exceptions.NeedSecondaryPasswordException
25
26
26
27
/**
27
28
* Strategy to handle the blockchain.info
@@ -61,7 +62,7 @@ class BlockchainInfoHandler extends AbstractImportExportHandler{
61
62
// we just need to ask for a password now
62
63
throw new FormatFoundNeedPasswordException
63
64
}
64
- } catch (Exception e) {
65
+ } catch (JSONException e) {
65
66
// ... then it can only be version 1
66
67
iterations = DefaultPBKDF2Iterations
67
68
payload = fileContents
You can’t perform that action at this time.
0 commit comments