pickledb
pickledb copied to clipboard
bug: sigterm_handler has wrong number of parameters
Signal handler is wrong and it sohuld take two arguments but it takes zero. If script is killed, this exception appear.
TypeError: sigterm_handler() takes 0 positional arguments but 2 were given
Tested with python 3.6.10
Here is a simple script which reveal this error. It simply kill self.
import pickledb
import os
db = pickledb.load('test.json', False)
os.system('kill $PPID')