638 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
638 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
639 output = str( |
639 output = str( |
640 proc.readAllStandardOutput(), |
640 proc.readAllStandardOutput(), |
641 Preferences.getSystem("IOEncoding"), |
641 Preferences.getSystem("IOEncoding"), |
642 "replace", |
642 "replace", |
643 ).strip() |
643 ).strip().splitlines()[0] |
644 try: |
644 try: |
645 jsonList = json.loads(output) |
645 jsonList = json.loads(output) |
646 except Exception: |
646 except Exception: |
647 jsonList = [] |
647 jsonList = [] |
648 |
648 |
705 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
705 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
706 output = str( |
706 output = str( |
707 proc.readAllStandardOutput(), |
707 proc.readAllStandardOutput(), |
708 Preferences.getSystem("IOEncoding"), |
708 Preferences.getSystem("IOEncoding"), |
709 "replace", |
709 "replace", |
710 ).strip() |
710 ).strip().splitlines()[0] |
711 try: |
711 try: |
712 jsonList = json.loads(output) |
712 jsonList = json.loads(output) |
713 except Exception: |
713 except Exception: |
714 jsonList = [] |
714 jsonList = [] |
715 |
715 |