Skip to content

Commit

Permalink
Flake 8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Apr 26, 2024
1 parent cec92f8 commit 6378fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/archiver/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def archive_resource(context, resource, log, result=None, url_timeout=30):
"""

storage_path = config.get('ckan.storage_path',
'/var/lib/ckan/default/resources')
'/var/lib/ckan/default/resources')
path_to_json = config.get(
'ckanext.cloudstorage.google_service_account_json')
bucket_name = config.get('ckanext.cloudstorage.container_name')
Expand Down Expand Up @@ -595,7 +595,7 @@ def archive_resource(context, resource, log, result=None, url_timeout=30):
s3_file_path = s3_file_path.replace(storage_path, "archiver")
blob = bucket.blob(s3_file_path)
blob.upload_from_filename(saved_file)

# delete the file from archive storage
if os.path.isfile(saved_file):
os.remove(saved_file)
Expand Down

0 comments on commit 6378fcb

Please sign in to comment.