From caf76fe94b26dca8418fca245a5c0b63111083df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 29 May 2019 13:12:39 +0200 Subject: [PATCH] Replaced ValueError with return, maybe this is only a bad workaround! --- pylot/core/util/widgets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index bf4bb4ae..024730ae 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1937,7 +1937,9 @@ class PickDlg(QDialog): if origins: source_origin = origins[0] else: - raise ValueError('No source origin given.') + print('get_arrivals: No source origin given. Return!') + return + # raise ValueError('No source origin given.') arrivals = func[plot](source_origin.depth, source_origin.latitude, source_origin.longitude,