add flake8

This commit is contained in:
Tom Tromey
2025-12-06 13:18:16 -06:00
parent dc5ea348e6
commit 48b2b25526
10 changed files with 34 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (C) 2012, 2013, 2015, 2023, 2024 Tom Tromey <tom@tromey.com>
# Copyright (C) 2012, 2013, 2015, 2023, 2024, 2025 Tom Tromey <tom@tromey.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -87,7 +87,7 @@ class BufferManager:
buff.begin_not_undoable_action()
try:
contents = open(filename).read()
except:
except Exception:
return None
buff.set_text(contents)
buff.end_not_undoable_action()