Added AUTHORS file and cleaned up some code.

This commit is contained in:
Johannes Findeisen 2022-09-08 05:32:59 +02:00
commit ae53c48815
3 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
PRIMARY AUTHORS are and/or have been (alphabetic order): PRIMARY AUTHORS (alphabetic order):
* Findeisen, Johannes * Findeisen, Johannes
Main Developer since the first code line. Main Developer and maintainer.
github.com profile: <https://github.com/hanez/> github.com: <https://github.com/hanez/>
openhub.net profile: <https://www.openhub.net/accounts/hanez> git.unixpeople.org: <https://git.unixpeople.org/hanez>
Homepage: <http://hanez.org/> Homepage: <http://hanez.org/>

View file

@ -140,7 +140,7 @@ def main():
configuration.set_httpserver(True) configuration.set_httpserver(True)
try: try:
u = Uplink(configuration.get_pid_file(), configuration) u = Uplink(configuration)
except Exception as err: except Exception as err:
logger.error(str('[uplink] core error! {0}'.format(err))) logger.error(str('[uplink] core error! {0}'.format(err)))
sys.exit(1) sys.exit(1)

View file

@ -39,8 +39,8 @@ logger = getLogger('uplink')
class Uplink(Daemon): class Uplink(Daemon):
def __init__(self, pid_file, configuration): def __init__(self, configuration):
super().__init__(pid_file) super().__init__(configuration.get_pid_file())
self.__configuration = configuration self.__configuration = configuration
def fetch_data(self, i): def fetch_data(self, i):