mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 21:14:15 +02:00
[flatpak] fix: handling json decode error when retrieving screenshots
This commit is contained in:
@@ -290,7 +290,10 @@ class FlatpakManager(SoftwareManager):
|
|||||||
if s.get('imgDesktopUrl'):
|
if s.get('imgDesktopUrl'):
|
||||||
urls.append(s['imgDesktopUrl'])
|
urls.append(s['imgDesktopUrl'])
|
||||||
|
|
||||||
except json.decoder.JSONDecodeError:
|
except Exception as e:
|
||||||
self.context.logger.error("Could not decode json from '{}'".format(screenshots_url))
|
if e.__class__.__name__ == 'JSONDecodeError':
|
||||||
|
self.context.logger.error("Could not decode json from '{}'".format(screenshots_url))
|
||||||
|
else:
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
return urls
|
return urls
|
||||||
|
|||||||
Reference in New Issue
Block a user