test
This commit is contained in:
parent
17b75a2ba9
commit
31d9031dcc
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
try:
|
||||||
pull = git.pull()
|
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:
|
||||||
|
|
Reference in a new issue