190 out = self.__writeIndex(package, element, newline) |
190 out = self.__writeIndex(package, element, newline) |
191 except OSError as v: |
191 except OSError as v: |
192 sys.stderr.write("{0} error: {1}\n".format(package, v[1])) |
192 sys.stderr.write("{0} error: {1}\n".format(package, v[1])) |
193 except Exception as ex: |
193 except Exception as ex: |
194 sys.stderr.write( |
194 sys.stderr.write( |
195 "{0} error writing index: {1}\n".format( |
195 "{0} error writing index: {1}\n".format(package, str(ex)) |
196 package, str(ex) |
|
197 ) |
|
198 ) |
196 ) |
199 raise |
197 raise |
200 else: |
198 else: |
201 if out: |
199 if out: |
202 sys.stdout.write("{0} ok\n".format(out)) |
200 sys.stdout.write("{0} ok\n".format(out)) |