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.backend.python
Commits
3ed7f46f
Commit
3ed7f46f
authored
Oct 07, 2019
by
Samuel GAIST
Browse files
[utils] Improve AstractStorage error message in constructor
parent
81e9ed49
Pipeline
#34109
passed with stage
in 7 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/backend/python/utils.py
View file @
3ed7f46f
...
...
@@ -226,7 +226,11 @@ class AbstractStorage(object):
if
not
all
(
[
type
(
attr
)
==
str
for
attr
in
[
self
.
asset_type
,
self
.
asset_folder
]]
):
raise
TypeError
(
"asset_type and asset_folder must be configure properly"
)
raise
TypeError
(
"asset_type and asset_folder must be configured properly
\n
"
"asset_type: {}
\n
"
"asset_folder: {}"
.
format
(
self
.
asset_type
,
self
.
asset_folder
)
)
self
.
path
=
path
self
.
json
=
File
(
self
.
path
+
".json"
)
...
...
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