Skip to content

Commit

Permalink
fix missing line in storage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowansdabomb committed Oct 25, 2018
1 parent 17f6068 commit 0cd7b6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dispatch/core/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def generate_signed_url(path, content_type, expires_after_seconds=60):

obj = os.path.join(settings.GS_LOCATION, path)

if settings.DEBUG:
client = storage.Client().from_service_account_json(settings.GCS_CREDENTIALS_FILE)
else:
client = storage.Client()
client = storage.Client()

# if settings.DEBUG:
# client = storage.Client().from_service_account_json(settings.GCS_CREDENTIALS_FILE)

bucket = client.get_bucket(settings.GS_STORAGE_BUCKET_NAME)
blob = storage.Blob(obj, bucket)
Expand Down

0 comments on commit 0cd7b6d

Please sign in to comment.