thingsconnected
403e7f1f7d
lib/addoninfo.cpp: When loading a JSON addon, test 'script' key. ( #5797 )
...
In case a user accidentally uses a wrong JSON file (e.g. naming.json,
which is the config file for namingng.py), the code could give a
confusing exception. This happens when the key 'script' is not defined
as a string.
This is solved by testing the key for existence and type. In case
'script' is not a key or refers to a type other than a string, a clear
error is given, stating for example: 'Loading naming.json failed. script
must be set to a string value.'
The message is kept in line with other messages. Maybe it can be
clarified further, e.g. 'Loading naming.json failed. A key "script" must
be set with a string value referring to a Python script.' - in which
case the errors relating to other keys may also be clarified.
2023-12-25 05:49:17 +01:00
..
2023-12-23 11:31:27 +01:00
2023-12-25 05:49:17 +01:00
2023-10-21 09:15:22 +02:00
2023-12-18 18:26:23 +01:00
2023-12-06 22:01:00 +01:00
2023-12-05 20:39:26 +01:00
2023-12-17 21:59:06 +01:00
2023-04-08 18:06:38 +02:00
2023-10-16 14:09:03 +02:00
2022-08-28 14:22:12 +02:00
2023-03-02 21:50:14 +01:00
2023-12-01 20:56:30 +01:00
2023-11-08 13:12:50 +01:00
2023-11-03 09:55:44 +01:00
2023-08-18 12:03:50 +02:00
2023-12-15 11:01:08 +01:00
2023-12-09 00:36:55 +01:00
2023-08-18 12:03:50 +02:00
2023-08-18 12:03:50 +02:00
2023-11-03 09:55:44 +01:00
2023-10-13 16:02:04 +02:00
2023-10-09 10:07:20 +02:00
2023-12-12 20:47:58 +01:00
2023-12-01 15:39:16 +01:00
2023-12-22 19:57:55 +01:00
2023-04-08 22:19:52 +02:00
2023-12-23 11:31:27 +01:00
2023-11-06 16:15:47 +01:00
2023-12-17 21:59:06 +01:00
2023-11-26 14:04:35 +01:00
2023-08-18 12:03:50 +02:00
2023-11-07 21:21:24 +01:00
2023-11-03 09:55:44 +01:00
2023-10-09 10:07:20 +02:00
2023-12-06 22:01:00 +01:00
2023-10-13 21:40:47 +02:00
2023-08-18 12:03:50 +02:00
2023-12-04 11:19:49 +01:00
2023-12-24 14:42:07 +01:00
2023-11-26 14:04:35 +01:00
2023-11-03 09:55:44 +01:00
2023-08-10 20:55:02 +02:00
2023-12-13 19:22:54 +01:00
2023-08-02 10:36:17 +02:00
2023-12-24 14:01:01 +01:00
2023-09-08 17:33:37 +02:00
2023-05-02 11:48:24 +02:00
2023-11-26 14:04:35 +01:00
2023-05-02 11:48:24 +02:00
2023-10-21 17:21:12 +02:00
2023-12-17 21:59:06 +01:00
2023-09-04 19:40:13 +02:00
2023-08-31 18:28:47 +02:00
2023-12-05 20:39:26 +01:00
2023-11-14 10:02:41 +01:00
2023-11-03 09:56:41 +01:00
2023-12-01 10:03:43 +01:00
2023-10-13 16:02:04 +02:00
2023-12-17 21:59:06 +01:00
2023-10-09 10:07:20 +02:00
2023-12-08 21:54:23 +01:00
2023-10-16 12:57:49 +02:00
2023-05-02 11:48:24 +02:00
2023-12-17 19:13:14 +01:00
2023-12-03 22:18:35 +01:00
2023-12-17 21:59:06 +01:00
2023-01-28 10:16:34 +01:00
2023-10-20 15:32:46 +02:00
2023-11-14 10:02:41 +01:00
2023-12-01 20:56:30 +01:00
2023-05-02 11:48:24 +02:00
2023-12-09 00:36:55 +01:00
2023-12-23 11:31:27 +01:00
2023-10-13 16:02:04 +02:00
2023-10-13 16:02:04 +02:00
2023-12-15 11:35:55 +01:00
2023-10-09 10:07:20 +02:00
2023-08-18 12:03:50 +02:00
2023-12-23 10:57:40 +01:00
2023-12-12 22:37:33 +01:00