The Arelle iXBRL Viewer allows Inline XBRL (or iXBRL) reports to be viewed interactively in a web browser. The viewer allows users to access the tagged XBRL data embedded in an iXBRL report.
If the iXBRL plugin is enabled and a non-iXBRL report is loaded an exception is thrown.
[viewer:exception] Exception 'ModelFact' object has no attribute 'format'
Traceback [' File "/Applications/Arelle.app/Contents/MacOS/plugin/iXBRLViewerPlugin/__init__.py", line 119, in processModel\n pluginData(cntlr).builder.processModel(modelXbrl)\n', ' File "/Applications/Arelle.app/Contents/MacOS/plugin/iXBRLViewerPlugin/iXBRLViewer.py", line 412, in processModel\n self.addFact(report, f)\n', ' File "/Applications/Arelle.app/Contents/MacOS/plugin/iXBRLViewerPlugin/iXBRLViewer.py", line 282, in addFact\n if f.format is not None:\n ^^^^^^^^\n']
Reason for change
If the iXBRL plugin is enabled and a non-iXBRL report is loaded an exception is thrown.
Description of change
Check that the report is iXBRL before processing.
Steps to Test
python arelleCmdLine.py --plugins ixbrl-viewer --save-viewer ixbrlviewer.html --file https://www.sec.gov/Archives/edgar/data/1445305/000144530515000045/0001445305-15-000045-xbrl.zip
[viewer:error] No inline XBRL documents loaded. Skipping iXBRL Viewer generation.
review: @Arelle/arelle @paulwarren-wk