[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] fabric-y way to capture "put" where the local file does not e
From: |
Paul Hoffman |
Subject: |
[Fab-user] fabric-y way to capture "put" where the local file does not exist? |
Date: |
Mon, 16 Jan 2012 13:42:19 -0800 |
Greetings again.
ReturnVal = fabric.operations.put(local_path="foo1.txt")
>From the description in the doc, I would have expected that if the
file foo1.txt didn't exist on the local system, ReturnVal.failed would
be ["foo1.txt"]. Instead, fabric throws an exception:
. . .
File "/Library/Python/2.7/site-packages/fabric/operations.py", line
425, in put
raise ValueError(err)
ValueError: 'foo1.txt' is not a valid local path or glob.
Is there a fabric-y (fabric-ic?) way to handle the local file not
existing other than wrapping the call in try/except?
--Paul Hoffman
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fab-user] fabric-y way to capture "put" where the local file does not exist?,
Paul Hoffman <=