Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ekaterina
erp5
Commits
abad7774
Commit
abad7774
authored
Sep 15, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: do not crash if data is not json
parent
8a1d7839
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py
...rp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py
+4
-1
No files found.
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py
View file @
abad7774
...
@@ -16,7 +16,10 @@ for software_product in software_product_list:
...
@@ -16,7 +16,10 @@ for software_product in software_product_list:
if
manifest_url
is
not
None
:
if
manifest_url
is
not
None
:
manifest
=
portal
.
portal_catalog
.
getResultValue
(
reference
=
version
+
'/'
+
manifest_url
)
manifest
=
portal
.
portal_catalog
.
getResultValue
(
reference
=
version
+
'/'
+
manifest_url
)
if
manifest
is
not
None
:
if
manifest
is
not
None
:
try
:
data
=
json
.
loads
(
manifest
.
getData
())
data
=
json
.
loads
(
manifest
.
getData
())
except
ValueError
:
continue
src_icon
=
data
[
'icons'
][
0
][
'src'
]
src_icon
=
data
[
'icons'
][
0
][
'src'
]
logo
=
portal
.
portal_catalog
.
getResultValue
(
reference
=
'%'
+
src_icon
,
version
=
version
,
portal_type
=
'File'
)
logo
=
portal
.
portal_catalog
.
getResultValue
(
reference
=
'%'
+
src_icon
,
version
=
version
,
portal_type
=
'File'
)
if
logo
is
not
None
:
if
logo
is
not
None
:
...
...
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