From 0eb2f176241c74fc60b72251aed679d9b4a3e718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 21 Mar 2017 15:46:29 +0100 Subject: [PATCH] Raise exception on not-implemented methods, instead of just pass'ing --- pillar/api/utils/gcs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pillar/api/utils/gcs.py b/pillar/api/utils/gcs.py index 302c5a05..0e9d4721 100644 --- a/pillar/api/utils/gcs.py +++ b/pillar/api/utils/gcs.py @@ -197,13 +197,13 @@ class GoogleCloudStorageBlob(Blob): self.blob = bucket.gcs_bucket.blob('_/' + name, chunk_size=256 * 1024 * 2) def create_from_file(self, uploaded_file, file_size): - pass + raise NotImplementedError() def _process_image(self, file_doc): - pass + raise NotImplementedError() def _process_video(self, file_doc): - pass + raise NotImplementedError() def update_file_name(node):