Update callback_data.py

Can't pass 0 to value, raises error 'ValueError: Value for {part} is not passed!'
This commit is contained in:
Kostiantyn Kriuchkov 2019-04-06 20:26:58 +01:00 committed by GitHub
parent 78aee861bb
commit db18d54b21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ class CallbackData:
for part in self._part_names:
value = kwargs.pop(part, None)
if not value:
if value is None:
if args:
value = args.pop(0)
else: