This logic was added during debugging.  It could be removed now (the entire try...except could be removed, and just the code under the try kept)