From 0ee77768fe894ab30efe215547ce72e0e627c666 Mon Sep 17 00:00:00 2001 From: "Michele.Maris" <michele.maris@inaf.it> Date: Wed, 12 Jun 2024 12:10:54 +0200 Subject: [PATCH] u --- src/yapsut/struct.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/yapsut/struct.py b/src/yapsut/struct.py index 4fc52dc..52f8e06 100644 --- a/src/yapsut/struct.py +++ b/src/yapsut/struct.py @@ -11,7 +11,10 @@ class struct : def __repr__(self) : out=[] for k in self.keys() : - out['('+k+':'+str(self[k])+')'] + try : + out.append('('+k+':'+str(self[k])+')') + except : + out.append('('+k+':'+type(self[k])+')') return '('+(','.join(out))+')' def __init__(self) : return -- GitLab