Updating config prints error (argument must be a string, a bytes-like object or a real number, not 'NoneType')

Asked by Numerfolt

I basically have the same problem as here: https://answers.launchpad.net/timekpr-next/+question/819502

But it seems that the error is thrown, but the config is still updated...

I wanted to update the config via CLI, using this command:

sudo timekpra --setallowedhours 'numerfolt' 'ALL' '0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23'

The result of this command is:
Fehler beim Aktualisieren der Konfiguration. Bitte die Timekpr-nExT Logs ansehen
("Error updating configuration. Please look into the Timekpr-nExT logfiles")

The error in the log is:
2025-09-16 22:15:25.697713: Unexpected ERROR (setAllowedHours): int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

The config at the moment is:
user "numerfolt" configuration:
ALLOWED_HOURS_1: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_HOURS_2: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_HOURS_3: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_HOURS_4: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_HOURS_5: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_HOURS_6: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_HOURS_7: 0[0-30];!8;!9;!10;!11;!12;!13;14;15;16;17;18;19;20;21;22;23
ALLOWED_WEEKDAYS: 1;2;3;4;5;6;7
LIMITS_PER_WEEKDAYS: 14400;14400;14400;14400;14400;14400;14400
TRACK_INACTIVE: False
HIDE_TRAY_ICON: False
LOCKOUT_TYPE: lock
LIMIT_PER_WEEK: 604800
LIMIT_PER_MONTH: 2678400
PLAYTIME_ENABLED: True
PLAYTIME_LIMIT_OVERRIDE_ENABLED: True
PLAYTIME_UNACCOUNTED_INTERVALS_ENABLED: True
PLAYTIME_ALLOWED_WEEKDAYS: 1;2;3;4;5;6;7
PLAYTIME_LIMITS_PER_WEEKDAYS: 18000;18000;18000;18000;18000;18000;18000
PLAYTIME_ACTIVITIES: Game1;Game2

As you can see from the configuration, it actually saves the config file even though the errors says otherwise...

What I actually want to achieve is normal usage from 8-0:30 with up to 4 hours of play time between 14 and 0:30.
For that I probably need to
- disable the PLAYTIME_LIMIT_OVERRIDE and PLAYTIME_UNACCOUNTED_INTERVALS_ENABLED
- set the playtime limit to 14400
- daily limit to 24h (or unlimited usage for all hours?)
Or do I miss something?

Question information

Language:
English Edit question
Status:
Solved
For:
Timekpr-nExT Edit question
Assignee:
Eduards Bezverhijs Edit question
Solved by:
Numerfolt
Solved:
Last query:
Last reply:
Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#1

Please look at this, the suggestion should help.

https://launchpad.net/timekpr-next/+announcement/53933

Revision history for this message
Numerfolt (numerfolt) said :
#2

We have version 0.5.8 installed, but the problem didnt happen again after a restart.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#3

Ok, so this happens in newer versions too? Can you send me the log file pls?

Revision history for this message
Gary Eric (infogaryeric) said :
#4

Nail Design https://naildesigns4u.com/ celebrates personal style with endless options—bold colors, soft pastels, or creative art that makes every set of nails uniquely you.