We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a07bc3 commit aea8e89Copy full SHA for aea8e89
src/PyWSGIRef/loadContent.py
@@ -6,11 +6,12 @@
6
from .exceptions import *
7
from .finished import finished
8
9
-def loadFromWeb(url: str) -> str:
+def loadFromWeb(url: str, overrideException: bool = False) -> str:
10
"""
11
Loads content from the given URL with the given data.
12
+ Overrides ServerAlreadyGeneratedError if overrideException is True.
13
- if finished.value:
14
+ if finished.value and not overrideException:
15
raise ServerAlreadyGeneratedError()
16
if not url.endswith(".pyhtml"):
17
raise InvalidFiletypeError()
0 commit comments