diff --git a/README.md b/README.md
index 3845f2d6d9894c464caaeb7418045fda54e92d07..040a7ccb053c37f021ff085a7ac8cff84021ee48 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,7 @@ Consult the docs for how to disable it.
 * fixed a bug with slicing chunks in `VarlenSeries`
 * added extra comparison operators for `VarlenEntry`
 * added `sync` to `VarlenSeries`
+* fixed a bug with not propagating metadata write exceptions
 
 ## v0.6.3
 
diff --git a/setup.cfg b/setup.cfg
index 6666d1a558015e987196a483b1a7b3f82c2067f8..57f81fd31346baa7fe7a4e0b04bcdf3dc0d819ed 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,7 +1,7 @@
 # coding: utf-8
 [metadata]
 name = tempsdb
-version = 0.6.4a6
+version = 0.6.4a7
 long-description = file: README.md
 long-description-content-type = text/markdown; charset=UTF-8
 license_files = LICENSE
diff --git a/tempsdb/metadata.pxd b/tempsdb/metadata.pxd
index 1e3651f9b2d7ead0ee92b02c1ac60b50407ba1b1..8276e52291aa4c70f3c7cd6a0bfdc6d884642781 100644
--- a/tempsdb/metadata.pxd
+++ b/tempsdb/metadata.pxd
@@ -5,4 +5,4 @@ cdef enum:
 
 
 cdef dict read_meta_at(str path)
-cdef int write_meta_at(str path, dict meta)
+cdef int write_meta_at(str path, dict meta) except -1
diff --git a/tempsdb/metadata.pyx b/tempsdb/metadata.pyx
index b4aac46836eba34093468e76120ed124484733da..35e858fd1747ce18e44f53614554e6ea3a1d16b3 100644
--- a/tempsdb/metadata.pyx
+++ b/tempsdb/metadata.pyx
@@ -39,7 +39,7 @@ cdef inline int write_meta_json(str path, dict meta):
     write_json_to_file(os.path.join(path, METADATA_FILE_NAME), meta)
     return 0
 
-cdef int write_meta_at(str path, dict meta):
+cdef int write_meta_at(str path, dict meta) except -1:
     cdef:
         bint exists_minijson = os.path.exists(os.path.join(path, METADATA_MINIJSON_FILE_NAME))
         bint exists_json = os.path.exists(os.path.join(path, METADATA_FILE_NAME))
@@ -57,4 +57,4 @@ cdef int write_meta_at(str path, dict meta):
         return write_meta_json(path, meta)
     else:
         raise EnvironmentError('both metadata files exists!')
-    return 0
+