Skip to content

Commit

Permalink
fixes QueryMain regression
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Nov 3, 2024
1 parent f6d8f9a commit 5c554ee
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
# https://pypi.org/project/wikitextparser/
'wikitextparser>=0.54.0',
# https://pypi.org/project/pylodstorage/
'pylodstorage>=0.12.2',
'pylodstorage>=0.13.3',
# mysql-connector-python 8.3.0
'mysql-connector-python>=8.3.0',
# https://pypi.org/project/bcrypt/
Expand Down
2 changes: 1 addition & 1 deletion wikibot3rd/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.5"
__version__ = "0.13.6"
2 changes: 1 addition & 1 deletion wikibot3rd/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Version(object):
name = "py-3rdparty-mediawiki"
version = wikibot3rd.__version__
date = "2020-10-31"
updated = "2024-10-24"
updated = "2024-11-03"

authors = "Wolfgang Fahl, Tim Holzheim"

Expand Down
12 changes: 0 additions & 12 deletions wikibot3rd/wikipush.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,6 @@ def restore(self, pageTitles=None, backupPath=None, listFile=None, stdIn=False):
__version__ = Version.version
__date__ = Version.date
__updated__ = Version.updated
DEBUG = False


def mainNuke(argv=None):
Expand Down Expand Up @@ -972,13 +971,6 @@ def main(argv=None, mode="wikipush"): # IGNORE:C0111
parser = ArgumentParser(
description=program_license, formatter_class=RawDescriptionHelpFormatter
)
parser.add_argument(
"-d",
"--debug",
dest="debug",
action="store_true",
help="set debug level [default: %(default)s]",
)
parser.add_argument(
"-V", "--version", action="version", version=program_version_message
)
Expand Down Expand Up @@ -1364,8 +1356,6 @@ def main(argv=None, mode="wikipush"): # IGNORE:C0111
### handle keyboard interrupt ###
return 1
except Exception as e:
if DEBUG:
raise (e)
indent = len(program_name) * " "
sys.stderr.write(program_name + ": " + repr(e) + "\n")
sys.stderr.write(indent + " for help use --help")
Expand All @@ -1375,6 +1365,4 @@ def main(argv=None, mode="wikipush"): # IGNORE:C0111


if __name__ == "__main__":
if DEBUG:
sys.argv.append("-d")
sys.exit(mainPush())

0 comments on commit 5c554ee

Please sign in to comment.