From d95db448e8bbb9948f1ad929f1aa4736cb25a66f Mon Sep 17 00:00:00 2001 From: A_D Date: Thu, 24 Dec 2020 13:12:34 +0200 Subject: [PATCH] Fixed getint not passing default arg --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 3d39dec0..3652ddeb 100644 --- a/config.py +++ b/config.py @@ -206,7 +206,7 @@ class AbstractConfig(abc.ABC): :raises OSError: on windows, if a registry error occurs. """ warnings.warn(DeprecationWarning('getint is Deprecated. Use get_int instead')) - return self.get_int(key, default) + return self.get_int(key, default=default) @abstractmethod def get_int(self, key: str, *, default: int = 0) -> int: