[tor-commits] [metrics-web/master] Remove catch for exception that is not thrown.

karsten at torproject.org karsten at torproject.org
Wed Dec 20 08:41:23 UTC 2017


commit cc979dae8b17f864dd3d720b5fc7aae15c681b5f
Author: iwakeh <iwakeh at torproject.org>
Date:   Mon Dec 4 11:14:38 2017 +0000

    Remove catch for exception that is not thrown.
---
 .../java/org/torproject/ernie/cron/RelayDescriptorDatabaseImporter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/ernie/cron/RelayDescriptorDatabaseImporter.java b/src/main/java/org/torproject/ernie/cron/RelayDescriptorDatabaseImporter.java
index 026707b..36f2102 100644
--- a/src/main/java/org/torproject/ernie/cron/RelayDescriptorDatabaseImporter.java
+++ b/src/main/java/org/torproject/ernie/cron/RelayDescriptorDatabaseImporter.java
@@ -386,7 +386,7 @@ public final class RelayDescriptorDatabaseImporter {
             + (ports != null ? ports : "\\N") + "\t");
         this.statusentryOut.write(PGbytea.toPGString(rawDescriptor)
             .replaceAll("\\\\", "\\\\\\\\") + "\n");
-      } catch (SQLException | IOException e) {
+      } catch (IOException e) {
         this.logger.log(Level.WARNING, "Could not write network status "
             + "consensus entry to raw database import file.  We won't "
             + "make any further attempts to write raw import files in "





More information about the tor-commits mailing list