def statsDB(self): stats = get_server().getDBConnection() if stats == None and not self.statDBErrorLogged: self.statDBErrorLogged = True log_error( "Lunch Statistics Plugin: No database connection available.") return stats
def run(self): dev = self.findButton() if dev == None: log_error("Cannot find panic button device") return handle = dev.open() interface = dev.configurations[0].interfaces[0][0] endpoint = interface.endpoints[0] try: handle.detachKernelDriver(interface) except Exception, _: # It may already be unloaded. pass
def selectedIssue(self): issueID = self.dropdown_reports.itemData(self.dropdown_reports.currentIndex(), IssuesComboModel.KEY_ROLE).toInt()[0] if not issueID in self.issues: log_error("ID of selected issue is not in issues dictionary") return None return self.issues[issueID]
def errorDownloadingIssues(self, _thread, _url): self.refresh_btn.setEnabled(self.isRepoSpecified()) log_error("Error fetching issues from github.")
def statsDB(self): stats = get_server().getDBConnection() if stats == None and not self.statDBErrorLogged: self.statDBErrorLogged = True log_error("Lunch Statistics Plugin: No database connection available.") return stats