Skip to content

Commit e810f67

Browse files
author
Tyler B
committed
Fixed dangling else: in issuer_or_subject_length()
1 parent 6e7988a commit e810f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_atecc/adafruit_atecc_asn1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,6 @@ def issuer_or_subject_length(
269269
tot_len += 11 + len(org_unit)
270270
if common:
271271
tot_len += 11 + len(common)
272-
else:
272+
if tot_len == 0:
273273
raise TypeError("Provided length must be > 0")
274274
return tot_len

0 commit comments

Comments
 (0)