fix seafapi.ping

This commit is contained in:
shim_
2018-10-03 15:34:41 +02:00
parent 5a4fbed69f
commit 2c32e74fd3
2 changed files with 8 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ class SeafileClient:
def ping(self):
try:
return self.session.get("%s/ping" % self.api_endpoint()).text == "pong"
return self.session.get("%s/ping" % self.api_endpoint()).text == "\"pong\""
except:
return False