clone-uri: fixed the problems with key mismatch that caused errors on summary page.

This commit is contained in:
Milka Kuzminski 2021-03-25 23:15:48 +01:00
parent 1df8822469
commit e6e16f3d3e

View file

@ -594,6 +594,9 @@ def credentials_filter(uri):
:param uri:
"""
import urlobject
if isinstance(uri, rhodecode.lib.encrypt.InvalidDecryptedValue):
return 'InvalidDecryptionKey'
url_obj = urlobject.URLObject(cleaned_uri(uri))
url_obj = url_obj.without_password().without_username()