mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-06 11:00:13 +02:00
Fix confused build logs on wiki, maybe
This commit is contained in:
parent
cd7f12e44e
commit
5ab225e1e1
@ -656,12 +656,12 @@ def main():
|
|||||||
wikilog = str(e)
|
wikilog = str(e)
|
||||||
|
|
||||||
if options.wiki and wikilog:
|
if options.wiki and wikilog:
|
||||||
|
try:
|
||||||
newpage = site.Pages[app['id'] + '/lastbuild']
|
newpage = site.Pages[app['id'] + '/lastbuild']
|
||||||
txt = wikilog
|
txt = wikilog
|
||||||
if len(txt) > 8192:
|
if len(txt) > 8192:
|
||||||
txt = txt[-8192:]
|
txt = txt[-8192:]
|
||||||
try:
|
newpage.save(wikilog, summary='Build log')
|
||||||
newpage.save(str(be), summary='Build log')
|
|
||||||
except:
|
except:
|
||||||
print "Error while attempting to publish build log"
|
print "Error while attempting to publish build log"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user