mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 00:12:16 +02:00
Add err handling
This commit is contained in:
parent
aa1958c143
commit
5fe084cdab
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ class Command(BaseCommand):
|
|||
# override = settings.SECRET_ENCRYPT_METADATA is None and not settings.IS_PRODUCTION
|
||||
# password = "devpwd" if override else settings.SECRET_ENCRYPT_METADATA
|
||||
password = settings.SECRET_ENCRYPT_METADATA
|
||||
if not password:
|
||||
raise ValueError(
|
||||
"No password was specified for this zip file."
|
||||
)
|
||||
|
||||
encrypted_zip_in_bytes = self.get_encrypted_zip(zip_filename, reports, password)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue