add quotes around attribute name

This commit is contained in:
Chase Sterling 2010-03-25 15:55:01 -04:00
parent 017d1e058e
commit 53fd0a57ee
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ from deluge.log import LOG as log
class PluginBase(component.Component):
def __init__(self, name):
interval = self.update_interval if hasattr(self, update_interval) else 1
interval = self.update_interval if hasattr(self, 'update_interval') else 1
super(PluginBase, self).__init__(name, interval)
def enable(self):