pickledb icon indicating copy to clipboard operation
pickledb copied to clipboard

bug: sigterm_handler has wrong number of parameters

Open j123b567 opened this issue 5 years ago • 0 comments

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')

j123b567 avatar Mar 26 '20 18:03 j123b567