def fitsinfo(filename):
 try:
  fits.info(filename)
 except IOError as e:
  log.error(str(e))
 return

def fitsinfo ( filename ) : try : fits . info ( filename ) except IOError as e : log . error ( str ( e ) ) return
print a summary of the hdus in a fits file .