Skip if empty remote filename
This commit is contained in:
parent
8522959aa9
commit
1700265b18
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ class Logbot(SingleServerIRCBot):
|
|||
|
||||
remote_fname = "/".join(full_fname.split("/")[1:])
|
||||
if DEBUG: print repr(remote_fname)
|
||||
if not remote_fname: continue
|
||||
try:
|
||||
self.ftp.storbinary("STOR %s" % remote_fname, open(full_fname, "rb"))
|
||||
except ftplib.error_perm, e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue