jborque / rpms / gnuradio

Forked from rpms/gnuradio 2 years ago
Clone
Blob Blame History Raw
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index c1ccc33..41da61a 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -336,8 +336,13 @@ class app_top_block(stdgui2.std_top_block):
 
 
 def main ():
-    app = stdgui2.stdapp(app_top_block, "UHD FFT", nstatus=1)
-    app.MainLoop()
+    try:
+        app = stdgui2.stdapp(app_top_block, "UHD FFT", nstatus=1)
+        app.MainLoop()
+
+    except RuntimeError, e:
+        print e
+        sys.exit(1)
 
 if __name__ == '__main__':
     main ()