Skip to content
Snippets Groups Projects
synapse_port_db 32.3 KiB
Newer Older
  • Learn to ignore specific revisions
  •     if postgres_config["name"] != "psycopg2":
    
            sys.stderr.write("Database must use the 'psycopg2' connector.\n")
    
        config = HomeServerConfig()
        config.parse_config_dict(hs_config, "", "")
    
    
        def start(stdscr=None):
            if stdscr:
                progress = CursesProgress(stdscr)
            else:
                progress = TerminalProgress()
    
            porter = Porter(
                sqlite_config=sqlite_config,
                progress=progress,
                batch_size=args.batch_size,
    
            )
    
            reactor.callWhenRunning(porter.run)
    
            reactor.run()
    
        if args.curses:
            curses.wrapper(start)
        else:
            start()
    
        if end_error_exec_info:
            exc_type, exc_value, exc_traceback = end_error_exec_info
            traceback.print_exception(exc_type, exc_value, exc_traceback)