From a7ca779870387edbd99e3778a8a2d6a50ef16c46 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 11 Jan 2020 16:24:35 +0100 Subject: [PATCH] Argument of int() can't be nullable --- platypush/backend/foursquare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/foursquare.py b/platypush/backend/foursquare.py index e0f53ce52..c75581e03 100644 --- a/platypush/backend/foursquare.py +++ b/platypush/backend/foursquare.py @@ -33,7 +33,7 @@ class FoursquareBackend(Backend): def run(self): super().run() self._last_created_at = int(get_plugin('variable').get(self._last_created_at_varname). - output.get(self._last_created_at_varname)) + output.get(self._last_created_at_varname) or 0) self.logger.info('Started Foursquare backend') while not self.should_stop():