flux-dl 1.0.0 → 1.0.1
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.
package/package.json
CHANGED
|
@@ -131,9 +131,11 @@ class RequestSpoofing {
|
|
|
131
131
|
return response.data;
|
|
132
132
|
} catch (error) {
|
|
133
133
|
if (error.response && error.response.status === 403) {
|
|
134
|
-
|
|
134
|
+
console.warn('Warning: 403 Forbidden, but continuing...');
|
|
135
|
+
// Don't throw - sometimes it still works
|
|
136
|
+
} else {
|
|
137
|
+
throw error;
|
|
135
138
|
}
|
|
136
|
-
throw error;
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
}
|