Skip to content

Commit

Permalink
Merge pull request #1234 from tgibson11/named-objects
Browse files Browse the repository at this point in the history
Raise exception when deleting capital data
  • Loading branch information
robcarver17 authored Jul 28, 2023
2 parents 97753f5 + 7f8f3e4 commit 7afa6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sysdata/production/capital.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from syscore.exceptions import missingData
from syscore.constants import arg_not_supplied, failure
from syscore.constants import arg_not_supplied

from sysdata.base_data import baseData
from sysobjects.production.capital import (
Expand Down Expand Up @@ -513,7 +513,7 @@ def delete_recent_capital(
"""
if not are_you_sure:
self._capital_data.log.warning("You have to be sure to delete capital")
return failure
raise Exception("You have to be sure!")

self.capital_data.delete_recent_capital(last_date=last_date)

Expand Down

0 comments on commit 7afa6ff

Please sign in to comment.