cli: report more information on exception when loading profiles
This commit is contained in:
parent
0548bde44f
commit
08fde28810
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue