diff --git a/cogs/da.py b/cogs/da.py index 4f98690..68eb8e8 100644 --- a/cogs/da.py +++ b/cogs/da.py @@ -77,7 +77,7 @@ class Deviantart: params['username'] = da_name async with self.session.get(self.base_url, headers=self.headers, params=params) as response: data = await response.json() - log.info("DA responded with {}".format(data)) + log.warning("DA responded with {}".format(data)) result = data['results'][0] cache[da_name] = result @@ -100,7 +100,7 @@ class Deviantart: update = {'last_updated': {da_name: result['deviationid']}} await config.update_content('deviantart', update, r_filter) except Exception as e: - tb = traceback.format_tb(e) + tb = traceback.format_exc() fmt = "{}\n{0.__class__.__name__}: {0}".format(tb, e) log.error(fmt) diff --git a/cogs/picarto.py b/cogs/picarto.py index 965af15..71bb4a1 100644 --- a/cogs/picarto.py +++ b/cogs/picarto.py @@ -106,7 +106,7 @@ class Picarto: await config.update_content('picarto', {'live': 0}, {'member_id': m_id}) await asyncio.sleep(30) except Exception as e: - tb = traceback.format_tb(e) + tb = traceback.format_exc() fmt = "{}\n{0.__class__.__name__}: {0}".format(tb, e) log.error(fmt) diff --git a/cogs/twitch.py b/cogs/twitch.py index f1b199b..6119c14 100644 --- a/cogs/twitch.py +++ b/cogs/twitch.py @@ -99,7 +99,7 @@ class Twitch: await config.update_content('twitch', {'live': 0}, {'member_id': m_id}) await asyncio.sleep(30) except Exception as e: - tb = traceback.format_tb(e) + tb = traceback.format_exc() fmt = "{}\n{0.__class__.__name__}: {0}".format(tb, e) log.error(fmt)