X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2FGigi.java;h=36e8c8ccc1064f17486dc7ce4e086d66ccc5d2fa;hp=660c3d308c9645d7f3003b7cee51d1cb8115c132;hb=f9799a61d559290c1ba6f6de557535348480caa0;hpb=ac3bac5a7cdbb446da41aeb3397e02fa7a41ed60 diff --git a/src/club/wpia/gigi/Gigi.java b/src/club/wpia/gigi/Gigi.java index 660c3d30..36e8c8cc 100644 --- a/src/club/wpia/gigi/Gigi.java +++ b/src/club/wpia/gigi/Gigi.java @@ -6,6 +6,7 @@ import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.nio.channels.FileChannel; import java.nio.file.FileSystems; +import java.nio.file.NoSuchFileException; import java.nio.file.Path; import java.security.KeyStore; import java.security.MessageDigest; @@ -319,7 +320,9 @@ public final class Gigi extends HttpServlet { throw new RuntimeException("Error while opening password hash database, refusing startup", e); } else { System.err.println("Error while opening password hash database, passwords will be checked only by strength"); - e.printStackTrace(); + if (!(e instanceof NoSuchFileException)) { + e.printStackTrace(); + } return new PasswordStrengthChecker(); } }