diff --git a/app/seaf-cli b/app/seaf-cli index 1f14ddb44..6561b289c 100755 --- a/app/seaf-cli +++ b/app/seaf-cli @@ -633,7 +633,9 @@ def seaf_status(args): continue t = seafile_rpc.get_repo_sync_task(repo.id) - if t.state == "error": + if not t: + print "%s\twaiting for sync" % repo.name + elif t.state == "error": print "%s\t%s" % (repo.name, t.error) else: print "%s\t%s" % (repo.name, t.state)