diff --git a/src/bemi.py b/src/bemi.py index e639387..079962b 100644 --- a/src/bemi.py +++ b/src/bemi.py @@ -64,6 +64,11 @@ def migration_upgrade(): current_tablename, current_tablename ); END LOOP; + EXCEPTION + WHEN insufficient_privilege THEN + RAISE NOTICE 'Skipping table % due to insufficient privilege', current_tablename; + WHEN others THEN + RAISE NOTICE 'Skipping table % due to unexpected error: %', current_tablename, SQLERRM; END; $$ LANGUAGE plpgsql;