diff --git a/alignak/objects/hostdependency.py b/alignak/objects/hostdependency.py
index <HASH>..<HASH> 100644
--- a/alignak/objects/hostdependency.py
+++ b/alignak/objects/hostdependency.py
@@ -261,6 +261,9 @@ class Hostdependencies(Items):
                     getattr(hostdep, 'dependent_host_name', None) is None:
                 continue
 
+            if hostdep.host_name not in hosts or hostdep.dependent_host_name not in hosts:
+                continue
+
             hosts.add_act_dependency(hostdep.dependent_host_name, hostdep.host_name,
                                      hostdep.notification_failure_criteria,
                                      getattr(hostdep, 'dependency_period', ''),
Closes #<I>: host dependency exception when host not found