diff --git a/navipy/rendering/bee_sampling.py b/navipy/rendering/bee_sampling.py
index e74b13bbc0580ec89a6739a574bcbd16086be497..62e048259389f07e33476a3d6f4b02db69b32318 100644
--- a/navipy/rendering/bee_sampling.py
+++ b/navipy/rendering/bee_sampling.py
@@ -29,7 +29,7 @@ Finally we can generate the database.
 import warnings
 try:
     import bpy
-except ModuleNotFoundError:
+except ModuleNotFoundError:  # noqa F821
     warnings.warn(
         'bpy could not be imported, ' +
         'please run your python program in blender')
diff --git a/navipy/rendering/cyber_bee.py b/navipy/rendering/cyber_bee.py
index 303b826150df571a7571f2a1a510269e423fe8cf..1c9ad25303290fb6c4bf12906360b9d96abdbccd 100644
--- a/navipy/rendering/cyber_bee.py
+++ b/navipy/rendering/cyber_bee.py
@@ -5,7 +5,7 @@
 import warnings
 try:
     import bpy
-except ModuleNotFoundError:
+except ModuleNotFoundError:  # noqa F821
     warnings.warn(
         'bpy could not be imported, ' +
         'please run your python program in blender')