mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 15:43:45 +08:00
esim: report when no eUICC is available (#38497)
* esim: report when no eUICC is available * remove newline
This commit is contained in:
@@ -50,6 +50,8 @@ if __name__ == '__main__':
|
||||
args = parser.parse_args()
|
||||
|
||||
lpa = HARDWARE.get_sim_lpa()
|
||||
if not lpa.is_euicc():
|
||||
raise SystemExit("no eUICC detected")
|
||||
if args.cmd == 'switch':
|
||||
lpa.switch_profile(resolve_iccid(lpa, args.profile))
|
||||
elif args.cmd == 'delete':
|
||||
|
||||
Reference in New Issue
Block a user