Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deleting "Default" Profile #943

Closed
xLogiiCx opened this issue Apr 9, 2021 · 1 comment
Closed

Error when deleting "Default" Profile #943

xLogiiCx opened this issue Apr 9, 2021 · 1 comment
Assignees
Labels
priority:high Security issue, or critical to functionality or usability (Cannot function or hard to use without) type:bug Something doesn't work as intended

Comments

@xLogiiCx
Copy link

xLogiiCx commented Apr 9, 2021

Hello, i created a 2nd Profile called "Remote" and noticed that the Default Profile also gets Edited when editing the "Remote" one.
I deleted the Default Profile and when i switched to "Remote" again i got this error:

Uncaught exception, please file a report with this text at
https://github.com/borgbase/vorta/issues/new
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 6884, in get
    return clone.execute(database)[0]
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 4275, in __getitem__
    return self.row_cache[item]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/vorta/views/main_window.py", line 124, in profile_select_action
    self.current_profile = BackupProfileModel.get(id=self.profileSelector.currentData())
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 6438, in get
    return sq.get()
  File "/usr/local/lib/python3.8/dist-packages/peewee.py", line 6887, in get
    raise self.model.DoesNotExist('%s instance matching query does '
vorta.models.BackupProfileModelDoesNotExist: <Model: BackupProfileModel> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."added_at", "t1"."repo_id", "t1"."ssh_key", "t1"."compression", "t1"."exclude_patterns", "t1"."exclude_if_present", "t1"."schedule_mode", "t1"."schedule_interval_hours", "t1"."schedule_interval_minutes", "t1"."schedule_fixed_hour", "t1"."schedule_fixed_minute", "t1"."validation_on", "t1"."validation_weeks", "t1"."prune_on", "t1"."prune_hour", "t1"."prune_day", "t1"."prune_week", "t1"."prune_month", "t1"."prune_year", "t1"."prune_keep_within", "t1"."new_archive_name", "t1"."prune_prefix", "t1"."pre_backup_cmd", "t1"."post_backup_cmd", "t1"."dont_run_on_metered_networks" FROM "backupprofilemodel" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?
Params: [1, 1, 0]
@m3nu m3nu added priority:high Security issue, or critical to functionality or usability (Cannot function or hard to use without) type:bug Something doesn't work as intended labels Apr 9, 2021
@m3nu
Copy link
Contributor

m3nu commented Apr 9, 2021

Thanks for reporting. I can reproduce this issue. Looks like the dropdown isn't cleared properly after renaming.

@m3nu m3nu self-assigned this Apr 9, 2021
m3nu added a commit to m3nu/vorta that referenced this issue Apr 9, 2021
@m3nu m3nu closed this as completed in 518df6f Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high Security issue, or critical to functionality or usability (Cannot function or hard to use without) type:bug Something doesn't work as intended
Projects
None yet
Development

No branches or pull requests

2 participants