caucase.utils: Tolerate broken symlinks
Otherwise, this causes an IOError to be raised in _getPEMTypeDict. So move file existence check inside the loop. Also rely on isdir returning False on non-existent inputs. This may for example happen if openssl-rehash is used on these directories: caucase-updater may delete an expired CA, breaking its symlink, triggering this bug and crashing caucase-updater.
Showing
Please register or sign in to comment