summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2012-01-19 12:43:37 -0600
committerChris Oliver <excid3@gmail.com>2012-01-19 12:43:37 -0600
commit1700265b187bc23d17618df90fa52131b4dd5883 (patch)
treead508e5a325b6c65065b2517595095e0dd55ecce /logbot.py
parent8522959aa90e20e1044a140d55f7c914022de9a6 (diff)
downloadlogbot-1700265b187bc23d17618df90fa52131b4dd5883.tar.xz
Skip if empty remote filename
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/logbot.py b/logbot.py
index dd75edb..5af885a 100644
--- a/logbot.py
+++ b/logbot.py
@@ -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: