zephyr_mirror: Catch IOError from zephyr.init().
(imported from commit d657fede53ee3754e76edf66b10bef09ad1f9577)
This commit is contained in:
		
							parent
							
								
									5bdcbc7f60
								
							
						
					
					
						commit
						2735c8410e
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -677,5 +677,13 @@ or specify the --api-key-file option.""" % (options.api_key_file,))) | |||
|         sys.exit(0) | ||||
| 
 | ||||
|     import zephyr | ||||
|     zephyr.init() | ||||
|     while True: | ||||
|         try: | ||||
|             # zephyr.init() tries to clear old subscriptions, and thus | ||||
|             # sometimes gets a SERVNAK from the server | ||||
|             zephyr.init() | ||||
|             break | ||||
|         except IOError: | ||||
|             traceback.print_exc() | ||||
|             time.sleep(1) | ||||
|     zephyr_to_humbug(options) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Abbott
						Tim Abbott