changeset 20:fcbc8e77cf8f

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 Apr 2015 12:15:15 +0200
parents 20af33af313a
children 8ff9507fac17
files Plugin/Cache/CacheScheduler.cpp
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Cache/CacheScheduler.cpp	Thu Apr 09 16:41:49 2015 +0200
+++ b/Plugin/Cache/CacheScheduler.cpp	Mon Apr 20 12:15:15 2015 +0200
@@ -130,9 +130,18 @@
           }
 
           std::string content;
-          if (!that->factory_.Create(content, prefetch->GetValue()))
+
+          try
           {
-            // The factory cannot generate this item
+            if (!that->factory_.Create(content, prefetch->GetValue()))
+            {
+              // The factory cannot generate this item
+              continue;
+            }
+          }
+          catch (...)
+          {
+            // Exception
             continue;
           }