def critical(self, message, torrent=None): utils.debugDump() message = '\n' \ '########### A CRITICAL ERROR HAS OCCURRED ###########\n' \ 'Please submit the debug.dump file in your data directory to\n' \ 'http://sourceforge.net/tracker/?func=add&group_id=163841&atid=829332\n' \ 'Also include the URL of the podcast that caused the error, if possible.\n' \ '#####################################################\n\n' self.showMessage('CRIT', message, torrent)
prefix += ':%d' % config['control_port'] prefix += '/' # TODO: iTunes drops the connection to a torrent download if a concurrent update takes too long. Figure out what the problem is. (Might have been hangups due to DNS queries) # TODO: make sure we don't buffer up too much data from socket connections and chew up megabytes of memory. # TODO: Allow configuration and feeds.yaml to be re-loaded during runtime. Resolver.startResolverThread(btControl.rawServer) server = HTTPServer(btControl.rawServer, display, btControl, config, useHelper) # TODO: FeedStore should be passed to HTTPServer, not created by it utils.tidyDataDir(config['data_dir'], server.feedStore, btControl.rawServer) btControl.rawServer.install_sigint_handler() if useHelper: btControl.rawServer.add_task(MacLauncher.startHelper, 0, (config['control_port'], server.address[1], btControl)) btControl.rawServer.add_task(display.info, 0, ('Ready on ' + prefix,)) btControl.start() if __name__ == '__main__': try: if 'RESOURCEPATH' in os.environ: MacLauncher.launch() else: main() # end if except SystemExit: pass except: utils.debugDump() raise # end try