I've previously posted a question about an ArcPy tool that walks through a specified area and scans all MXDs and associated Layers and reports them (as well as the inverse) Search for a shapefile of any kind and report all associated MXDs.
The issue is if a shapefile is used within a MXD hosted on ArcGIS Online, the script halts and ArcGIS prompts the user for login info. Until that window is closed, the script will not continue.
Can ArcPy detect this?
Can it be written into an exception and skipped?
I am familiar with exceptions and how they work.