From c3c6630c6c53d0617f497fa541c34a59e222b327 Mon Sep 17 00:00:00 2001 From: diSabler Date: Thu, 12 Jun 2014 16:20:02 +0400 Subject: [PATCH] fix: empty answer in svn command --- plugins/svn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/svn.py b/plugins/svn.py index b0636dc..e4938fe 100644 --- a/plugins/svn.py +++ b/plugins/svn.py @@ -43,7 +43,7 @@ def svn_get(type, jid, nick,text): sh_exe = 'sh -c \"LANG=%s svn log %s --limit %s\"' % (L('en_EN.UTF8','%s/%s'%(jid,nick)),url,count) if verb: sh_exe = '%s -v\"' % sh_exe[:-1] svn_log = shell_execute(sh_exe,'%s/%s'%(jid,nick)).replace('\n\n','\n') - while svn_log[-1] in ['-','\n']: svn_log = svn_log[:-1] + while svn_log and svn_log[-1] in ['-','\n']: svn_log = svn_log[:-1] rpl = re.findall('-{10,}',svn_log) if rpl: svn_log = svn_log.replace(rpl[0],'-'*3) msg = 'SVN from %s\n%s' % (url,svn_log)