Argument of int() can't be nullable

This commit is contained in:
Fabio Manganiello 2020-01-11 16:24:35 +01:00
parent 3b2ca4d70c
commit a7ca779870

View file

@ -33,7 +33,7 @@ class FoursquareBackend(Backend):
def run(self): def run(self):
super().run() super().run()
self._last_created_at = int(get_plugin('variable').get(self._last_created_at_varname). 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') self.logger.info('Started Foursquare backend')
while not self.should_stop(): while not self.should_stop():