diff --git a/src/sakia/core/community.py b/src/sakia/core/community.py
index 40d0474bdb0a16a80958aab6b46f0fc2e47e6601..e9fcdd9d3d02c5040588620ca96132f54e90ae80 100644
--- a/src/sakia/core/community.py
+++ b/src/sakia/core/community.py
@@ -225,8 +225,8 @@ class Community(QObject):
                                  req_args={'number': block_number})
             return block['medianTime']
         except errors.DuniterError as e:
-            if e.ucode == errors.BLOCK_NOT_FOUND:
-                return 0
+            logging.debug(str(e))
+            return 0
         except NoPeerAvailable as e:
             logging.debug(str(e))
             return 0