def delete_broken_import_file(self):
     files = [
         self.broken_import_file_path,
         # Also remove the .pyc that was created if the file was imported.
         self.broken_import_file_path + 'c',
     ]
     for f in files:
         try:
             os.remove(f)
         except OSError, exc:
             _log.error("Could not remove broken import file %s: %r" % (f, exc))
Beispiel #2
0
 def delete_broken_import_file(self):
     files = [
         self.broken_import_file_path,
         # Also remove the .pyc that was created if the file was imported.
         self.broken_import_file_path + 'c',
     ]
     for f in files:
         try:
             os.remove(f)
         except OSError, exc:
             _log.error("Could not remove broken import file %s: %r" %
                        (f, exc))
 def catch_exceptions_in_thread():
     try:
         self.server.run()
     except (Exception, SystemExit), exc:
         _log.error("Thread threw exception: %r" % exc)
         raise
Beispiel #4
0
 def catch_exceptions_in_thread():
     try:
         self.server.run()
     except (Exception, SystemExit), exc:
         _log.error("Thread threw exception: %r" % exc)
         raise