old_contents: # -*- coding:utf-8 -*-
  import os
  import time
  
  
  def dev_robot():
      path = "/home/pi/code/wechatserver/wechatclient/"
      os.chdir(path)
      try:
          os.system("git fetch  --all")
          os.system("git reset --hard tornado")
          os.system("git pull")
      except Exception as e:
          raise
  
  
  def git_timer():
  	while True:
  		time.sleep(10)
  		cas_val = dev_robot()
  		print (cas_val)
  
  def app_timer():
  	path = "/home/pi/code/wechatserver/wechatclient/"
      os.chdir(path)
  	while True:
  		time.sleep(10)
  		os.system("python clinet.py")
  
  if __name__ == '__main__':
  	git_timer()
  	app_timer()
  
new_contents: # -*- coding:utf-8 -*-
  import os
  import time
  
  
  def dev_robot():
      path = "/home/pi/code/wechatserver/wechatclient/"
      os.chdir(path)
      try:
          os.system("git fetch  --all")
          os.system("git reset --hard tornado")
          os.system("git pull")
      except Exception as e:
          pass
  
  
  def git_timer():
  	while True:
  		time.sleep(10)
  		cas_val = dev_robot()
  		print (cas_val)
  
  
  if __name__ == '__main__':
  	git_timer()
  
subject: fix bug