From eb2e9620443dad24b3f7729528b688cda92586d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 19 Jan 2009 15:21:04 +0000 Subject: [PATCH] Add explanation for ERR_NOSIM (bug #781). --- Wammu/Utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wammu/Utils.py b/Wammu/Utils.py index 18e2aed0..e91fc637 100644 --- a/Wammu/Utils.py +++ b/Wammu/Utils.py @@ -453,6 +453,8 @@ def FormatError(txt, info): message = _('Can not access device for communication with phone.') if sys.platform == 'linux2': message += ' ' + _('Maybe you need to be member of some group to have acces to device.') + elif info['Code'] == gammu.Errors['ERR_NOSIM']: + message = _('Can not access SIM card. Please check whether it is properly inserted in phone and/or try to reboot the phone by removing battery.') else: message = '%s %s\n%s %s\n%s %d' % (_('Description:'), StrConv(info['Text']), _('Function:'), info['Where'], _('Error code:'), info['Code']) return StrConv(txt + '\n\n' + message) -- 2.11.4.GIT