Skip to content

Commit

Permalink
fix: fixed linting and test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon committed Oct 20, 2023
1 parent 4413c0d commit 6a693e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/facility/api/viewsets/facility_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def get_queryset(self):
queryset=UserSkill.objects.filter(skill__deleted=False),
),
)
except Exception as e:
raise ValidationError({"Facility": "Facility not found"}) from e
except Facility.DoesNotExist:
raise ValidationError({"Facility": "Facility not found"})
12 changes: 12 additions & 0 deletions care/facility/migrations/0393_merge_20231020_1752.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by Django 4.2.5 on 2023-10-20 12:22

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("facility", "0389_add_duty_staff"),
("facility", "0392_alter_dailyround_consciousness_level"),
]

operations = []

0 comments on commit 6a693e0

Please sign in to comment.