@cloud411716/fancy-webnovel 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -155,11 +155,16 @@ export function apply(ctx) {
155
155
  const platform = row[1];
156
156
 
157
157
  // ---------- rank selection (multi-select) ----------
158
- const rankResult = await ctx.userQuestions.ask({
159
- questions: [scan.askRankList(platform)],
160
- agent: invocation.agent,
161
- signal,
162
- });
158
+ let rankResult;
159
+ try {
160
+ rankResult = await ctx.userQuestions.ask({
161
+ questions: [scan.askRankList(platform)],
162
+ agent: invocation.agent,
163
+ signal,
164
+ });
165
+ } catch {
166
+ return notify(session, 'error', scan.notify({ type: 'cancelled' }));
167
+ }
163
168
  const selected = rankResult.answers[0]?.selected ?? [];
164
169
  const custom = rankResult.answers[0]?.custom?.trim();
165
170
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {