Skip to content

Commit

Permalink
don't accidentally catch the wrong exception
Browse files Browse the repository at this point in the history
  • Loading branch information
prof7bit committed May 27, 2014
1 parent fa028e8 commit 3adeab8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.google.common.base.Charsets
import com.google.common.io.Files
import java.io.File
import java.math.BigInteger
import org.json.JSONException
import org.json.JSONObject
import org.slf4j.Logger
import org.slf4j.LoggerFactory
Expand All @@ -20,8 +21,8 @@ import org.spongycastle.crypto.paddings.PaddedBufferedBlockCipher
import org.spongycastle.crypto.params.ParametersWithIV
import org.spongycastle.util.encoders.Base64
import prof7bit.bitcoin.wallettool.core.KeyObject
import prof7bit.bitcoin.wallettool.exceptions.NeedSecondaryPasswordException
import prof7bit.bitcoin.wallettool.exceptions.FormatFoundNeedPasswordException
import prof7bit.bitcoin.wallettool.exceptions.NeedSecondaryPasswordException

/**
* Strategy to handle the blockchain.info
Expand Down Expand Up @@ -61,7 +62,7 @@ class BlockchainInfoHandler extends AbstractImportExportHandler{
// we just need to ask for a password now
throw new FormatFoundNeedPasswordException
}
} catch (Exception e) {
} catch (JSONException e) {
// ... then it can only be version 1
iterations = DefaultPBKDF2Iterations
payload = fileContents
Expand Down

0 comments on commit 3adeab8

Please sign in to comment.