move_dates_for_testing throws misleading errors #33

Closed
opened 2021-12-07 23:19:37 +01:00 by nik · 7 comments
Owner

Occuring when called on the Untis test data, which does not have to be moved:

Traceback (most recent call last):
  File "/usr/local/bin/aleksis-admin", line 8, in <module>
    sys.exit(aleksis_cmd())
  File "/usr/local/lib/python3.9/dist-packages/aleksis/core/__main__.py", line 14, in aleksis_cmd
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.9/dist-packages/aleksis/apps/untis/management/commands/move_dates_for_testing.py", line 93, in handle
    raise RuntimeError("You need at least one validity range to move data.")
RuntimeError: You need at least one validity range to move data.
Occuring when called on the Untis test data, which does not have to be moved: ```plain Traceback (most recent call last): File "/usr/local/bin/aleksis-admin", line 8, in <module> sys.exit(aleksis_cmd()) File "/usr/local/lib/python3.9/dist-packages/aleksis/core/__main__.py", line 14, in aleksis_cmd execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.9/dist-packages/aleksis/apps/untis/management/commands/move_dates_for_testing.py", line 93, in handle raise RuntimeError("You need at least one validity range to move data.") RuntimeError: You need at least one validity range to move data. ```
Author
Owner

assigned to @hansegucker

assigned to @hansegucker
Author
Owner

changed due date to December 08, 2021

changed due date to December 08, 2021
Author
Owner

changed title from move_dates_for_testing {-does not work with Chronos test data-} to move_dates_for_testing {+throws misleading errors+}

changed title from **move_dates_for_testing {-does not work with Chronos test data-}** to **move_dates_for_testing {+throws misleading errors+}**
Author
Owner

changed the description

changed the description
Owner

created merge request !177 to address this issue

created merge request !177 to address this issue
Owner

mentioned in merge request !177

mentioned in merge request !177
nik closed this issue 2021-12-12 22:18:25 +01:00
Author
Owner

mentioned in commit 2715d0b72f

mentioned in commit 2715d0b72f40c1c70fe9ce79f861f27aec97b3e3
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Untis#33
No description provided.