Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
b0838f78
Commit
b0838f78
authored
Mar 24, 2020
by
Flavio TARSETTI
Committed by
Samuel GAIST
Mar 26, 2020
Browse files
[widgets][toolchaineditor] patching ValueError with KeyError for BlockType classmethod
parent
606cfa68
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/toolchaineditor.py
View file @
b0838f78
...
...
@@ -762,8 +762,8 @@ class BlockType(Enum):
def
from_name
(
cls
,
name
):
try
:
return
cls
[
name
]
except
Value
Error
:
raise
Value
Error
(
"{} is not a valid block type"
.
format
(
name
))
except
Key
Error
:
raise
Key
Error
(
"{} is not a valid block type"
.
format
(
name
))
class
Block
(
QGraphicsObject
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment