Fixed issue with exception on sphinx warning