diff --git a/NEWS.rst b/NEWS.rst
index bae7d242fb4c1f485553d810b1daac34ab0e8109_TkVXUy5yc3Q=..55667c899e3add55ec0531e5f13dcfb7463a7083_TkVXUy5yc3Q= 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -18,6 +18,8 @@
 
 Handle option --odoo-sources in odoo 13.
 
+🚑 avoid error on warning.out
+
 7.0.5
 -----
 
diff --git a/create_documentation b/create_documentation
index bae7d242fb4c1f485553d810b1daac34ab0e8109_Y3JlYXRlX2RvY3VtZW50YXRpb24=..55667c899e3add55ec0531e5f13dcfb7463a7083_Y3JlYXRlX2RvY3VtZW50YXRpb24= 100755
--- a/create_documentation
+++ b/create_documentation
@@ -63,7 +63,7 @@
             echo "${RED}WARN${RESET}  - Branch name not found"
             branch="default"
         fi
-            for doc_dir in doc docs ; do
+        for doc_dir in doc docs ; do
             if [[ -d $doc_dir && -e $doc_dir/Makefile ]]; then
                 echo "${YELLOW}INFO ${RESET} - Branch name: $branch"
                 has_doc=True
@@ -157,7 +157,9 @@
 if [[ "$CI" = "true" ]]; then
     echo -e "# HELP odoo_scripts_create_documentation_module_error Number of module in error.\n# TYPE odoo_scripts_create_documentation_module_error gauge\nodoo_scripts_create_documentation_module_error ${module_error}\n" > metrics
     for doc_dir in doc docs; do
-        [[ ! -e ${doc_dir}/_build/warnings.out ]] && echo -e "# HELP odoo_scripts_create_documentation_superproject_warnings Number of warnings in superproject.\n# TYPE odoo_scripts_create_documentation_superproject_warnings gauge\nodoo_scripts_create_documentation_superproject_warnings $(grep --count WARNING ${doc_dir}/_build/warnings.out)\n" >> metrics
+        if [[ -e ${doc_dir}/_build/warnings.out ]] ; then
+            echo -e "# HELP odoo_scripts_create_documentation_superproject_warnings Number of warnings in superproject.\n# TYPE odoo_scripts_create_documentation_superproject_warnings gauge\nodoo_scripts_create_documentation_superproject_warnings $(grep --count WARNING ${doc_dir}/_build/warnings.out)\n" >> metrics
+        fi
     done
 fi