Skip to content

Commit

Permalink
Do not log missing related objs
Browse files Browse the repository at this point in the history
  • Loading branch information
achembarpu committed Aug 3, 2018
1 parent 3413fb3 commit f6db2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixture_magic/management/commands/custom_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def process_dep(parent, dep):
try:
thing = getattr(parent, current)
except AttributeError:
sys.stderr.write('%s.%s not found\n' % (parent, current))
pass # related object not found
else:
if hasattr(thing, 'all'):
children = thing.all()
Expand Down

0 comments on commit f6db2e7

Please sign in to comment.