]> git.phdru.name Git - bookmarks_db.git/commitdiff
Refactor(Robots): Most robots do not store FTP welcome message
authorOleg Broytman <phd@phdru.name>
Tue, 10 Sep 2024 13:04:48 +0000 (16:04 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 10 Sep 2024 13:04:48 +0000 (16:04 +0300)
Robots/base.py
Robots/bkmk_raio.py
Robots/bkmk_rcurl.py
Robots/bkmk_rtwisted.py

index b2e2dd97e39f50ba6932c06578ba1513bdbdfa1d..5cb671c9a8b414c21fa0da09bad077a3785f4629 100644 (file)
@@ -424,6 +424,9 @@ class robot_base(Robot):
                 moved = moved.encode('utf-8')
         self.log('   Moved: %s' % moved)
 
+    def get_ftp_welcome(self):
+        return ''  # Not all robots store FTP welcome message
+
     def finish_check_url(self, bookmark):
         start = self.start
         bookmark.last_tested = str(start)
index f4082c61e97683903586bd994b8c7e830b997993..2e93d3269224cfba611d79b7dd18ff46eebf5f05 100644 (file)
@@ -130,9 +130,6 @@ class robot_aio(multi_mixin):
                 else:
                     log('   No logs')
 
-    def get_ftp_welcome(self):
-        return ''  # We don't store welcome message yet
-
     def stop(self):
         super(robot_aio, self).stop()
         self.loop.close()
index 6407153efe1b6637affe1206d4ac9d45f30d7128..7bd0907dd9d04d9adcfbb77245a9c2cb3dcacc52 100644 (file)
@@ -65,9 +65,6 @@ class robot_curl(cf_multithread):
             if num_handles == 0:
                 sleep(1)
 
-    def get_ftp_welcome(self):
-        return ''  # We don't store welcome message yet
-
 
 class CurlWrapper:
     def __init__(self, robot, url, req_headers, use_proxy):
index f5f2f29493698a1a7abe3a8ca769d227dd510fef..47e09daa8ff1191a249ff97a62d0a1f528966534 100644 (file)
@@ -109,6 +109,3 @@ class robot_twisted(cf_multithread):
                 d.addErrback(self.cbError, queue, timeoutCall)
 
             sleep(0.1)
-
-    def get_ftp_welcome(self):
-        return ''  # We don't store welcome message yet