cmd_admin.py

changeset 64
384167adad2b
parent 62
052a8a1e3d7d
--- 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