diff --git a/migration_helpers/migration_helpers.py b/migration_helpers/migration_helpers.py index e4bbb280dd..ba7bf6f908 100644 --- a/migration_helpers/migration_helpers.py +++ b/migration_helpers/migration_helpers.py @@ -255,7 +255,17 @@ def migrate_custom_csv( def on_ready(): - actions.user.migrate_known_csv_files() + try: + actions.user.migrate_known_csv_files() + except KeyError: + # Due to a core Talon bug, the above action may not be available when a ready callback is invoked. + # (see https://github.com/talonhub/community/pull/1268#issuecomment-2325721706) + notification = ( + "Unable to migrate CSVs to Talon lists.", + "Please quit and restart Talon.", + ) + app.notify(*notification) + print(*notification) app.register("ready", on_ready)