Skip to content

Commit

Permalink
Add error description to the log message
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Apr 21, 2023
1 parent 7d3562f commit 341e511
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,9 @@ def check_channels_updates(self):
channel.timestamp,
)
self.channels_processing_queue[channel.infohash] = (PROCESS_CHANNEL_DIR, channel)
except Exception:
self._logger.exception(
"Error when tried to download a newer version of channel %s", hexlify(channel.public_key)
)
except Exception as e:
self._logger.exception(f"Error when tried to download a newer version of channel "
f"{hexlify(channel.public_key)}: {type(e).__name__}: {e}")

async def remove_channel_download(self, to_remove):
"""
Expand Down

0 comments on commit 341e511

Please sign in to comment.