File pyparted-3.10.patch of Package python-parted

---
 src/parted/disk.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/src/parted/disk.py
+++ b/src/parted/disk.py
@@ -474,4 +474,7 @@ while __readFlags:
     if not __flag:
         __readFlags = False
     else:
-        diskFlag[__flag] = _ped.disk_flag_get_name(__flag)
+        try:
+            diskFlag[__flag] = _ped.disk_flag_get_name(__flag)
+        except:
+            print("Bad disk flag: {}".format(__flag))
openSUSE Build Service is sponsored by