Ticket #1116: enable_exit_if_not_connected.patch

File enable_exit_if_not_connected.patch, 582 bytes (added by cdep_illabout, 16 years ago)
  • deluge/ui/console/main.py

     
    295295                parser._print_help(f)
    296296        parser.print_help = print_help
    297297
    298         if not client.connected() and cmd not in ("help", "connect", "quit"):
     298        if not client.connected() and cmd not in ("help", "connect", "quit", "exit"):
    299299            self.write("{!error!}Not connected to a daemon, please use the connect command first.")
    300300            return
    301301