1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Merge pull request #1089 from arsenetar/as/pre-commit

feat: Add pre-commit, include python 3.11 in tests
This commit is contained in:
2023-01-09 23:18:13 -06:00
committed by GitHub
85 changed files with 295 additions and 275 deletions

View File

@@ -163,4 +163,4 @@ PyObject *PyInit__block_qt(void) {
return NULL;
}
return m;
}
}

View File

@@ -31,7 +31,10 @@ class File(PhotoBase):
image = image.convertToFormat(QImage.Format_RGB888)
if type(orientation) != int:
logging.warning(
"Orientation for file '%s' was a %s '%s', not an int.", str(self.path), type(orientation), orientation
"Orientation for file '%s' was a %s '%s', not an int.",
str(self.path),
type(orientation),
orientation,
)
try:
orientation = int(orientation)