Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
a6fba8e9
Commit
a6fba8e9
authored
5 years ago
by
Conor Finn
Browse files
Options
Downloads
Patches
Plain Diff
RE #28108 Simplify exception handling
parent
79c502f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/TofConverter/converterGUI.py
+4
-10
4 additions, 10 deletions
scripts/TofConverter/converterGUI.py
with
4 additions
and
10 deletions
scripts/TofConverter/converterGUI.py
+
4
−
10
View file @
a6fba8e9
...
@@ -131,15 +131,9 @@ class MainWindow(QMainWindow):
...
@@ -131,15 +131,9 @@ class MainWindow(QMainWindow):
self
.
ui
.
convertedVal
.
clear
()
self
.
ui
.
convertedVal
.
clear
()
self
.
ui
.
convertedVal
.
insert
(
str
(
self
.
output
))
self
.
ui
.
convertedVal
.
insert
(
str
(
self
.
output
))
except
UnboundLocalError
as
ule
:
except
(
UnboundLocalError
,
ArithmeticError
,
ValueError
,
RuntimeError
)
as
err
:
QMessageBox
.
warning
(
self
,
"
TofConverter
"
,
str
(
ule
))
QMessageBox
.
warning
(
self
,
"
TofConverter
"
,
str
(
err
))
return
return
except
ArithmeticError
as
ae
:
except
Exception
as
exc
:
QMessageBox
.
warning
(
self
,
"
TofConverter
"
,
str
(
ae
))
Logger
.
error
(
exc
)
return
except
ValueError
as
ve
:
QMessageBox
.
warning
(
self
,
"
TofConverter
"
,
str
(
ve
))
return
except
RuntimeError
as
re
:
QMessageBox
.
warning
(
self
,
"
TofConverter
"
,
str
(
re
))
return
return
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment