Skip to content

Commit 091dd9a

Browse files
committed
Fix pylint warning
1 parent da198e4 commit 091dd9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sshpubkeys/keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ def _validate_application_string(self, application):
396396

397397
try:
398398
parsed_url = urlparse(application)
399-
except ValueError as error:
400-
raise InvalidKeyError("Application string: %s" % error)
399+
except ValueError as err:
400+
raise InvalidKeyError(f"Application string: {err}") from err
401401
if parsed_url.scheme != b"ssh":
402402
raise InvalidKeyError('Application string must begin with "ssh:"')
403403

0 commit comments

Comments
 (0)