Skip to content

Commit

Permalink
EOL error line 286 _gpg/common.py fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lion Holler committed Jun 27, 2024
1 parent ad26f88 commit a0de081
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions securesystemslib/_gpg/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,17 @@ def parse_pubkey_bundle(data):
)

else:
packets_list = [
PACKET_TYPE_PRIMARY_KEY,
PACKET_TYPE_USER_ID,
PACKET_TYPE_USER_ATTR,
PACKET_TYPE_SUB_KEY,
PACKET_TYPE_SIGNATURE,
]
log.info(
f"Ignoring gpg key packet '{packet_type}', "
"we only handle packets of "
f"types '{[PACKET_TYPE_PRIMARY_KEY,
PACKET_TYPE_USER_ID,
PACKET_TYPE_USER_ATTR,
PACKET_TYPE_SUB_KEY,
PACKET_TYPE_SIGNATURE,
]}' (see RFC4880 4.3. Packet Tags)."
f"types '{packets_list}' (see RFC4880 4.3. Packet Tags)."
)

# Both errors might be raised in parse_packet_header and in this loop
Expand Down

0 comments on commit a0de081

Please sign in to comment.