fix stderr output
This commit is contained in:
		
							parent
							
								
									c688106541
								
							
						
					
					
						commit
						5957c0c94a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -40,7 +40,8 @@ class ApiWrapper:
 | 
				
			||||||
                case 'y_search': return self.y_search(message)
 | 
					                case 'y_search': return self.y_search(message)
 | 
				
			||||||
                case _: return self.FAILED
 | 
					                case _: return self.FAILED
 | 
				
			||||||
        except Exception as e:
 | 
					        except Exception as e:
 | 
				
			||||||
            sys.stderr.write(str(e))
 | 
					            e_text = str(e)
 | 
				
			||||||
 | 
					            sys.stderr.write(f'API failed: {e_text}\n')
 | 
				
			||||||
            return self.FAILED
 | 
					            return self.FAILED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __sanitize_search(self, message: str) -> str:
 | 
					    def __sanitize_search(self, message: str) -> str:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue