summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgr-uhd/apps/uhd_fft9
1 files changed, 7 insertions, 2 deletions
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index c1ccc33261..41da61aca3 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 ()