fix possible access to None value

This commit is contained in:
Matthias Mair committed 2024-07-11 22:31:13 +02:00
1 parent be2beeca61
commit 2b9d5ea20f
1 file changed
+3
@@ -84,6 +84,9 @@ def getNewestMigrationFile(app, exclude_extension=True):
newest_num = num
newest_file = f
if not newest_file: # pragma: no cover
return newest_file
if exclude_extension:
newest_file = newest_file.replace('.py', '')