fix accessing methods through 'path-metadata' pathfmt proxy (#6582)

https://github.com/mikf/gallery-dl/issues/6582#issuecomment-3193498152
This commit is contained in:
Mike Fährmann
2025-08-16 15:50:48 +02:00
parent 2d49d3d843
commit fec37c50f0

View File

@@ -118,7 +118,7 @@ class PathfmtProxy():
def __getattribute__(self, name):
pathfmt = object.__getattribute__(self, "job").pathfmt
return pathfmt.__dict__.get(name) if pathfmt else None
return getattr(pathfmt, name, None) if pathfmt else None
def __str__(self):
if pathfmt := object.__getattribute__(self, "job").pathfmt: