check-hrns.py: Ciro fix
authorMohamed Larabi <mohamed.larabi@inria.fr>
Fri, 13 Dec 2013 15:50:13 +0000 (16:50 +0100)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Fri, 13 Dec 2013 15:50:13 +0000 (16:50 +0100)
bin/check-hrns.py

index 40909f2..e5ac4dc 100755 (executable)
@@ -70,7 +70,7 @@ def handle_sites (sites,sites_by_id, dry_run,verbose):
         hrn='.'.join([toplevel, site['login_base']])
         if site['hrn'] != hrn:
             if verbose:
-                print "Site %s - current hrn %s, should be %s"%(site['name'], site['hrn'], hrn)
+                print "Site %s - current hrn %s, should be %s"%(site['name'].encode('ascii', 'ignore'), site['hrn'], hrn)
             if dry_run: continue
             SetSiteHrn (site['site_id'],hrn)
         else: