Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/local/butler/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

def _compute_revision(timestamp, is_staging=False):
"""Return a source code revision.

This revision contains the timestamp, git-sha, user, config git-sha, and
appengine release (prod or staging). The ordinality of revision is crucial
for updating source code. Later revision *must* be greater than earlier
Expand Down Expand Up @@ -265,7 +265,7 @@
stderr=subprocess.DEVNULL)

if return_code != 0:
raise RuntimeError('Failed to generate requirements from Pipfile.')

Check failure on line 268 in src/local/butler/common.py

View workflow job for this annotation

GitHub Actions / build

Failed to generate requirements from Pipfile.

with open(requirements_path, 'wb') as f:
f.write(output)
Expand Down Expand Up @@ -351,7 +351,7 @@

def remove_symlink(target):
"""Removes a symlink."""
if not os.path.exists(target):
if not os.path.lexists(target):
return

if os.path.isdir(target) and get_platform() == 'windows':
Expand Down
Loading