This commit is contained in:
Luke Rogers 2014-02-28 17:16:01 +13:00
parent 17b75a2ba9
commit 31d9031dcc

View file

@ -7,7 +7,10 @@ from util import hook, web
def update(inp, bot=None): def update(inp, bot=None):
repo = Repo() repo = Repo()
git = repo.git git = repo.git
pull = git.pull() try:
pull = git.pull()
except Exception as e:
return e
if "\n" in pull: if "\n" in pull:
return web.haste(pull) return web.haste(pull)
else: else: