def printoptions(modadd):
try:
print(" ")
t = PrettyTable([colors.red +'Option', 'Value', 'Description'+colors.end])
t.add_row(["------","------","-----------"])
t.align = 'l'
t.valing = 'm'
t.border = False
for key, val in modadd.variables.items():
t.add_row([key, val[0], val[1]])
print (t,'\n')
try:
print(modadd.option_notes,'\n')
except(AttributeError):
pass
except Exception as error:
print(colors.red+"error: module is corrupted\n")
traceback.print_exc(file=sys.stdout)
print(colors.end)
评论列表
文章目录