ArcPy ListDataFrames on empty MXD crash

Discussion created by alaux on May 29, 2012
Latest reply on Aug 2, 2013 by foresterdave

I have a script that iterates through multiple directories and runs a report on mxd information. Running into problems with it however whenever an empty mxd is loaded.

Whenever running " DFList = arcpy.mapping.ListDataFrames(mxd)" I get a crash of the python script .

Is there any way to test for an empty mxd or perhaps some other problem that i'm missing here.

Andrew L.