From 0c76122d5a111c06c3762f1dae73f75b4ac59df3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 31 Mar 2020 15:38:56 +0200 Subject: modemproxy: Remove code that's never reached --- src/ppm/modemproxy.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ppm/modemproxy.py b/src/ppm/modemproxy.py index d3ee4b1..192c621 100644 --- a/src/ppm/modemproxy.py +++ b/src/ppm/modemproxy.py @@ -151,9 +151,6 @@ class ModemManagerProxy(GObject.GObject): return card.Get('(ss)', self.MM_DBUS_INTERFACE_SIM, 'Imsi') except Exception as msg: raise ModemError("Getting IMSI failed: %s" % msg) - if not re.match(self.IMSI_RE, imsi): - raise ModemError("%s is not a valid imsi" % imsi) - return imsi def get_network_id(self): imsi = self.get_imsi() -- cgit v1.2.3