Fix two deprecation warnings about e.message