Skip to content

Commit ccd834d

Browse files
committed
Hotfix: Don't import missing error class
This seems to be missing when installing pywikibot in production. Not sure why yet.
1 parent 6028cb3 commit ccd834d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

video2commons/backend/upload/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import pywikibot
2828

2929
from pywikibot.exceptions import (
30-
ApiNotAvailableError,
3130
FatalServerError,
3231
ServerError,
3332
TimeoutError,
@@ -130,7 +129,7 @@ def ignore_warnings(warnings):
130129
break # The upload completed successfully.
131130
except (FatalServerError, TaskError):
132131
raise # These will not be corrected by resending.
133-
except (ServerError, TimeoutError, ApiNotAvailableError):
132+
except (ServerError, TimeoutError):
134133
# These errors are possibly transient, so retry them.
135134
remaining_tries -= 1
136135
if remaining_tries == 0:

0 commit comments

Comments
 (0)