fixeria submitted this change.
3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
ara_m: fix undefined variable used in a format-string
Change-Id: I310a5d461bae2b5e4d8e07097000b079c23aa0f6
---
M pySim/ara_m.py
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pySim/ara_m.py b/pySim/ara_m.py
index aa41268..e1c26f6 100644
--- a/pySim/ara_m.py
+++ b/pySim/ara_m.py
@@ -361,7 +361,7 @@
ar_do_content += [{'apdu_ar_do': {'generic_access_rule': 'always'}}]
elif opts.apdu_filter:
if len(opts.apdu_filter) % 16:
- raise ValueError('Invalid non-modulo-16 length of APDU filter: %d' % len(do))
+ raise ValueError(f'Invalid non-modulo-16 length of APDU filter: {len(opts.apdu_filter)}')
offset = 0
apdu_filter = []
while offset < len(opts.apdu_filter):
To view, visit change 42380. To unsubscribe, or for help writing mail filters, visit settings.