diff --git a/Tribler/community/anontunnel/StatsCrawler.py b/Tribler/community/anontunnel/StatsCrawler.py index 58bea41ce28..b36b8d8c0e4 100644 --- a/Tribler/community/anontunnel/StatsCrawler.py +++ b/Tribler/community/anontunnel/StatsCrawler.py @@ -99,8 +99,8 @@ def on_stats(self, community, candidate, stats): self.conn.commit() logger.warning("Storing stats data off %s:%d" % sock_address) - except sqlite3.IntegrityError: - logger.error("Already stored this stat") + except sqlite3.IntegrityError as e: + logger.exception("Error while storing stats") except BaseException as e: logger.exception(e)