From 1f84b7edc48ffa59649e596bf3eb726a52639a23 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 15 Mar 2026 14:57:39 +0700 Subject: [PATCH] ara_m: fix undefined variable used in a format-string Change-Id: I310a5d461bae2b5e4d8e07097000b079c23aa0f6 --- pySim/ara_m.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/ara_m.py b/pySim/ara_m.py index aa412684..e1c26f6c 100644 --- a/pySim/ara_m.py +++ b/pySim/ara_m.py @@ -361,7 +361,7 @@ class ADF_ARAM(CardADF): 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):