Skip to content

Commit

Permalink
Reorder the if clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydriz committed Aug 8, 2016
1 parent 8f9a1bf commit 23eae01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/dumps.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,12 +842,13 @@ def execute(self, args=None):
error has occurred.
"""
continuous = False
if (args.dumpsjob == "update"):
return self.update()
elif args is None or (args.dumpswiki is None and
args.dumpsdate is None):
if (args is None):
# It is likely that --auto has been declared when args is None
continuous = True
elif (args.dumpsjob == "update"):
return self.update()
elif (args.dumpswiki is None and args.dumpsdate is None):
continuous = True
elif (args.dumpswiki is None and args.dumpsdate is not None):
self.common.giveError("Error: Date was given but not the wiki!")
return False
Expand Down

0 comments on commit 23eae01

Please sign in to comment.