[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Re: Review Request 7184: catch exception for json files with a 'NoneType' object
From: Luigi Toscano <luigi.toscano () tiscali ! it>
Date: 2016-10-08 12:59:03
Message-ID: 20161008125903.11123.29436 () mimi ! kde ! org
[Download RAW message or body]
--===============6270686491578632679==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://svn.reviewboard.kde.org/r/7184/#review11272
-----------------------------------------------------------
If no one else object, I would submit it.
- Luigi Toscano
On Ott. 8, 2016, 8:44 a.m., Burkhard Lück wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://svn.reviewboard.kde.org/r/7184/
> -----------------------------------------------------------
>
> (Updated Ott. 8, 2016, 8:44 a.m.)
>
>
> Review request for Localization and Translation (l10n).
>
>
> Repository: kde
>
>
> Description
> -------
>
> Scripty reports in ftp://l10n.kde.org/161007.trunk_l10n-kf5 for files like \
> ghelp.json:
> Traceback (most recent call last):
> File "./scripts/filljsonfrompo.py", line 139, in <module>
> main()
> File "./scripts/filljsonfrompo.py", line 109, in main
> if len(set(jsondata.get(kpluginfield).keys()).intersection(translationfields)) == \
> 0:
> AttributeError: 'NoneType' object has no attribute 'keys'
> cannot process /home/scripty/prod/git-unstable-kf5/frameworks_kio/src/ioslaves/help/ghelp.json: \
> Traceback (most recent call last):
>
> Diffs
> -----
>
> trunk/l10n-kf5/scripts/filljsonfrompo.py 1471487
>
> Diff: https://svn.reviewboard.kde.org/r/7184/diff/
>
>
> Testing
> -------
>
> none
>
>
> Thanks,
>
> Burkhard Lück
>
>
--===============6270686491578632679==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;"> \
<tr> <td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://svn.reviewboard.kde.org/r/7184/">https://svn.reviewboard.kde.org/r/7184/</a>
</td>
</tr>
</table>
<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: \
0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">If no \
one else object, I would submit it.</p></pre> <br />
<p>- Luigi Toscano</p>
<br />
<p>On ottobre 8th, 2016, 8:44 a.m. UTC, Burkhard Lück wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;"> <tr>
<td>
<div>Review request for Localization and Translation (l10n).</div>
<div>By Burkhard Lück.</div>
<p style="color: grey;"><i>Updated Ott. 8, 2016, 8:44 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
kde
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Scripty reports in ftp://l10n.kde.org/161007.trunk_l10n-kf5 for files \
like ghelp.json:
Traceback (most recent call last):
File "./scripts/filljsonfrompo.py", line 139, in <module>
main()
File "./scripts/filljsonfrompo.py", line 109, in main
if len(set(jsondata.get(kpluginfield).keys()).intersection(translationfields)) == \
0:
AttributeError: 'NoneType' object has no attribute 'keys'
cannot process /home/scripty/prod/git-unstable-kf5/frameworks_kio/src/ioslaves/help/ghelp.json: \
Traceback (most recent call last):</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">none</p></pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>trunk/l10n-kf5/scripts/filljsonfrompo.py <span style="color: \
grey">(1471487)</span></li>
</ul>
<p><a href="https://svn.reviewboard.kde.org/r/7184/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
--===============6270686491578632679==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic