Worked around an exception: FieldError
diff --git a/planetstack/dependency_walker.py b/planetstack/dependency_walker.py
index 93e1847..bc75b0c 100755
--- a/planetstack/dependency_walker.py
+++ b/planetstack/dependency_walker.py
@@ -55,7 +55,6 @@
def __walk_deps(fn, object, deps):
model = object.__class__.__name__
-
for dep in deps:
#print "Checking dep %s"%dep
peer=None
@@ -74,8 +73,10 @@
if (peer):
try:
peer_objects = peer.all()
- except:
+ except AttributeError:
peer_objects = [peer]
+ except:
+ peer_objects = []
for o in peer_objects:
fn(o, object)