Advertisement
pjmakey2

graph_app_update

Feb 14th, 2013
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #actualizacion control de errores
  2. for grpd in grupos_dic:
  3.     try:
  4.         graph.put_wall_post(mensaje, profile_id=grpd.get('id'))
  5.         print grpd.get('name')
  6.     except Exception, e:
  7.         print 'Error en la escritura del muro %s' % grpd.get('name')
  8.         print 'ERROR:%s'  % str(e)
  9.     print '--------------------------'
  10.     print '--------------------------'
  11.     else:
  12.         print 'Publicacion correcta %s' % grpd.get('name')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement