remove return no exception when no domain
This commit is contained in:
@@ -396,11 +396,6 @@ def get_alldomains(db: Session):
|
||||
|
||||
def get_domains(db: Session,userid:int):
|
||||
domains = db.query(models.Domain).filter(models.Domain.ownerid == userid ).all()
|
||||
if not domains:
|
||||
raise HTTPException(status_code=404, detail="Data not found")
|
||||
# for domain in domains:
|
||||
# decrypted_pwd = chacha20Decrypt(domain.kintonepwd)
|
||||
# domain.kintonepwd = decrypted_pwd
|
||||
return domains
|
||||
|
||||
def get_events(db: Session):
|
||||
|
||||
Reference in New Issue
Block a user