]> git.parisson.com Git - deefuzzer.git/commitdiff
cleanup
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 26 May 2014 09:38:39 +0000 (11:38 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 26 May 2014 09:38:39 +0000 (11:38 +0200)
deefuzzer/station.py
deefuzzer/tools/utils.py

index bf866752a4dcaaa9e511b9e55bed1b512d5656ef..c67a20338ad3f10b5a842a737b1efee1ede5f009 100644 (file)
@@ -581,14 +581,14 @@ class Station(Thread):
                 self.q.get(1)
                 server = urllib.urlopen(self.server_url)
                 self.server_ping = True
-                self.logger.write_info('Station ' + self.channel_url + \
-                                        ' : channel available')
+                text = 'Station ' + self.channel_url + ' : channel available'
+                self.logger.write_info(text)
                 self.q.task_done()
             except:
                 time.sleep(0.5)
                 if log:
-                    self.logger.write_error('Station ' + self.channel_url + \
-                                        ' : could not connect the channel' )
+                    text = 'Station ' + self.channel_url + ' : could not connect the channel' 
+                    self.logger.write_error(text)
                     log = False
                 self.q.task_done()
                 pass
index 8282cfc5d2218bc4ae067f1d0ec0d30b4a557c5b..ce24e4cfc90fc71b6a246ccb63edc0e261f7b3f5 100644 (file)
@@ -34,3 +34,4 @@ def get_file_info(media):
     file_title = '.'.join(file_title)
     file_ext = file_name.split('.')[-1]
     return file_name, file_title, file_ext
+