- restart correctly after updating

Wed, 05 Nov 2014 01:38:08 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 05 Nov 2014 01:38:08 +0200
changeset 64
384167adad2b
parent 63
a1a864c25e42
child 65
20bd76353eb5

- restart correctly after updating

cmd_admin.py file | annotate | diff | comparison | revisions
--- a/cmd_admin.py	Wed Nov 05 01:36:38 2014 +0200
+++ b/cmd_admin.py	Wed Nov 05 01:38:08 2014 +0200
@@ -52,7 +52,7 @@
 		r2 = repo.hg_id()
 		if r1 != r2:
 			bot.privmsg (replyto, 'Updated to %s, restarting...' % r2)
-			excepterm('')
+			bot.restart()
 		else:
 			bot.privmsg (replyto, 'Up to date at %s.' % r2)
 	except hgapi.HgException as e:

mercurial