-m
This commit is contained in:
parent
b9b8e3a5f1
commit
6c8a2526d9
40 changed files with 219 additions and 141 deletions
|
@ -1,9 +1,11 @@
|
|||
from tkinter import messagebox
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import grpc
|
||||
if TYPE_CHECKING:
|
||||
import grpc
|
||||
|
||||
|
||||
def show_grpc_error(e: grpc.RpcError):
|
||||
def show_grpc_error(e: "grpc.RpcError"):
|
||||
title = [x.capitalize() for x in e.code().name.lower().split("_")]
|
||||
title = " ".join(title)
|
||||
title = f"GRPC {title}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue