<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2/3/2012 12:41, David Crawford wrote:
<blockquote
cite="mid:CAFiR-D_jPKzo5G5fNKYSX=QdOL_qawNNv=y+3Rp=tKM2iXO9RA@mail.gmail.com"
type="cite">On 3 February 2012 17:34, Raymond Wagner <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2/3/2012 12:23, David Crawford wrote:<br>
> if len(sys.argv) != 3:<br>
</div>
> chanid, starttime = sys.argv[1:3]<br>
<br>
Looks like this one's my fault. You want it to run only when
you have<br>
the proper number of command line arguments. This does the
opposite.<br>
<br>
if len(sys.argv) != 3:<br>
raise Exception('Invalid argument count')<br>
chanid, starttime = sys.argv[1:3]<br>
<div class="im"><br>
> prog = be.getRecording(<chanid>,
<starttime>)<br>
<br>
</div>
"<chanid>" and "<starttime>" are still not valid
variables.</blockquote>
</div>
<br>
So what can i do about
"<chanid>" and "<starttime>" ?<br>
</blockquote>
<br>
Use two variables you've already defined, that you think would be
storing values for those two pieces of data. (Hint: You've only
defined three variables so far.)<br>
</body>
</html>