murrayo / yape

yet another pButtons extractor
MIT License
11 stars 7 forks source link

Empty perfmon section results in error #26

Open abanad opened 3 years ago

abanad commented 3 years ago

If a pbuttons file has an empty perfmon section (common if pbuttons is run with insufficient privileges), yape will get this error:

Traceback (most recent call last): File "/usr/local/bin/yape", line 33, in sys.exit(load_entry_point('yape', 'console_scripts', 'yape')()) File "/src/yape/yape/command_line.py", line 6, in main yape.yape2() File "/src/yape/yape/main.py", line 248, in yape2 parsepbuttons(args.pButtons_file_name, db) File "/src/yape/yape/parsepbuttons.py", line 845, in parsepbuttons if cols[1] == "Time": IndexError: list index out of range Press any key to Continue.

For reference, I ran yape with with -ac flags