aboutsummarybugs & patchesrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVosjedev <vosje@vosjedev.net>2026-01-24 15:26:16 +0100
committerVosjedev <vosje@vosjedev.net>2026-01-24 15:26:16 +0100
commit54529c14f308b7f9e84cbe8c6c14ad85c2ed613d (patch)
tree7685f09987ebd7529c34e253ece03248b2fa3d85 /src
parentff4d19222ba629010cf62b17c1fc97956dba088b (diff)
downloaddiscord_image_bridge-54529c14f308b7f9e84cbe8c6c14ad85c2ed613d.tar.gz
discord_image_bridge-54529c14f308b7f9e84cbe8c6c14ad85c2ed613d.tar.bz2
discord_image_bridge-54529c14f308b7f9e84cbe8c6c14ad85c2ed613d.tar.xz
web: fix false accusation of wrong filename
Signed-off-by: Vosjedev <vosje@vosjedev.net>
Diffstat (limited to 'src')
-rw-r--r--src/discord_image_bridge/__init__.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/discord_image_bridge/__init__.py b/src/discord_image_bridge/__init__.py
index 390009b..6744543 100644
--- a/src/discord_image_bridge/__init__.py
+++ b/src/discord_image_bridge/__init__.py
@@ -46,12 +46,7 @@ class Root(object):
osname=os.path.join(hash[:2],hash)
if not os.path.isfile(osname):
from . import utils
- ohash, realname=utils.download_uncached(*match[1:4])
- if not fname==realname:
- cherrypy.log(
- "!! Filename changed! We know it as %s, discord knows it as %s !!"%(fname, realname),
- severity=WARNING
- )
+ ohash, osname=utils.download_uncached(*match[1:4])
if not hash==ohash:
cherrypy.log("Wrong hash! Expected %s, got %s"%(hash,ohash))
cherrypy.log("Fname=%s"%fname)