cli: report more information on exception when loading profiles

This commit is contained in:
Peter F. Patel-Schneider 2024-02-05 13:53:45 -05:00
parent 0548bde44f
commit 08fde28810
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,8 @@
## with this program; if not, write to the Free Software Foundation, Inc., ## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import traceback as _traceback
import yaml as _yaml import yaml as _yaml
from logitech_receiver.hidpp20 import OnboardProfiles as _OnboardProfiles from logitech_receiver.hidpp20 import OnboardProfiles as _OnboardProfiles
@ -55,3 +57,4 @@ def run(receivers, args, find_receiver, find_device):
print(f'Wrote {written} sectors to {dev.name}') print(f'Wrote {written} sectors to {dev.name}')
except Exception as exc: except Exception as exc:
print('Profiles not written:', exc) print('Profiles not written:', exc)
print(_traceback.format_exc())