Change in gr-gsm[master]: Log import errors as currently GRC 3.8 suppress them

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

ptrkrysik gerrit-no-reply at lists.osmocom.org
Mon May 3 10:24:51 UTC 2021


Hello vvvelichkov,

I'd like you to do a code review. Please visit

    https://gerrit.osmocom.org/c/gr-gsm/+/24092

to review the following change.


Change subject: Log import errors as currently GRC 3.8 suppress them
......................................................................

Log import errors as currently GRC 3.8 suppress them

See gnuradio/grc/core/FlowGraph.py:194

Change-Id: Ie6213428c218720692a544c98dc32c16bd50cbe1
---
M python/__init__.py
1 file changed, 20 insertions(+), 16 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/92/24092/1

diff --git a/python/__init__.py b/python/__init__.py
index 87a62d6..b68df4a 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -43,21 +43,25 @@
         os.path.join(dirname, "transmitter"),
         os.path.join(dirname, "trx")]
 
-# import swig generated symbols into the gsm namespace
-from .grgsm_swig import *
+try:
+    # import swig generated symbols into the gsm namespace
+    from .grgsm_swig import *
 
-# import any pure python here
+    # import any pure python here
 
-#from fcch_burst_tagger import fcch_burst_tagger
-#from sch_detector import sch_detector
-#from fcch_detector import fcch_detector
-from .clock_offset_corrector_tagged import clock_offset_corrector_tagged
-from .gsm_input import gsm_input
-from .gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper
-from .gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper
-from .gsm_sdcch8_demapper import gsm_sdcch8_demapper
-from .gsm_gmsk_mod import gsm_gmsk_mod
-from .fn_time import *
-from .txtime_bursts_tagger import *
-from .arfcn import *
-from .device import *
+    #from fcch_burst_tagger import fcch_burst_tagger
+    #from sch_detector import sch_detector
+    #from fcch_detector import fcch_detector
+    from .clock_offset_corrector_tagged import clock_offset_corrector_tagged
+    from .gsm_input import gsm_input
+    from .gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper
+    from .gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper
+    from .gsm_sdcch8_demapper import gsm_sdcch8_demapper
+    from .gsm_gmsk_mod import gsm_gmsk_mod
+    from .fn_time import *
+    from .txtime_bursts_tagger import *
+    from .arfcn import *
+    from .device import *
+except ImportError as e:
+    import traceback; traceback.print_exc()
+    raise

-- 
To view, visit https://gerrit.osmocom.org/c/gr-gsm/+/24092
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-Change-Id: Ie6213428c218720692a544c98dc32c16bd50cbe1
Gerrit-Change-Number: 24092
Gerrit-PatchSet: 1
Gerrit-Owner: ptrkrysik <ptrkrysik at gmail.com>
Gerrit-Reviewer: vvvelichkov <vvvelichkov at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210503/b5244fa6/attachment.htm>


More information about the gerrit-log mailing list