Skip to content

Commit

Permalink
if else changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saranyaloganathan23 committed Aug 30, 2024
1 parent dc61510 commit 1f5229b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dataproc_jupyter_plugin/services/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ async def check_file_exists(self, bucket, file_path):
raise ValueError("Bucket name cannot be empty")
bucket_name = storage.Client().bucket(bucket)
blob = bucket_name.blob(file_path)
if blob.exists():
return True
else:
return False
return blob.exists()
except Exception as error:
self.log.exception(f"Error checking file: {error}")
raise IOError(f"Error creating dag: {error}")
Expand Down

0 comments on commit 1f5229b

Please sign in to comment.