Skip to content

Commit

Permalink
Fix indentation in check_cloud_paths_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlu committed Mar 7, 2024
1 parent 27b96ae commit aeea779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dags/igneous_and_cloudvolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ def check_cloud_paths_empty(paths):
for path in paths:
cf = CloudFiles(path)
obj = next(cf.list(), None)
if obj is not None:
slack_message(""":exclamation:*Error*: `{}` is not empty""".format(path))
raise RuntimeError('Path already exist')
if obj is not None:
slack_message(""":exclamation:*Error*: `{}` is not empty""".format(path))
raise RuntimeError('Path already exist')
except:
slack_message(""":exclamation:*Error*: Check cloud path failed:
```{}``` """.format(traceback.format_exc()))
Expand Down

0 comments on commit aeea779

Please sign in to comment.