diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index e65e511..1d7223e 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -73,13 +73,12 @@ def on_internet_available(agent): to_install = [] to_check = [ - ( - 'bettercap/bettercap', subprocess.getoutput('bettercap -version').split(' ')[1].replace('v', ''), True), + ('bettercap/bettercap', subprocess.getoutput('bettercap -version').split(' ')[1].replace('v', ''), True), ('evilsocket/pwngrid', subprocess.getoutput('pwngrid -version').replace('v', ''), True), ('evilsocket/pwnagotchi', pwnagotchi.version, False) ] - for repo, local_version, is_native in to_check.items(): + for repo, local_version, is_native in to_check: info = check(local_version, repo, is_native) if info['url'] is not None: to_install.append(info) diff --git a/pwnagotchi/ui/web.py b/pwnagotchi/ui/web.py index 9eb5b8f..c6a304b 100644 --- a/pwnagotchi/ui/web.py +++ b/pwnagotchi/ui/web.py @@ -173,8 +173,8 @@ class Server(object): if 'origin' in config['video'] and config['video']['origin'] != '*': Handler.AllowedOrigin = config['video']['origin'] else: - logging.warning("THE WEB UI IS RUNNING WITH ALLOWED ORIGIN SET TO *, READ WHY YOU SHOULD CHANGE IT HERE \ - https://developer.mozilla.org/it/docs/Web/HTTP/CORS") + logging.warning("THE WEB UI IS RUNNING WITH ALLOWED ORIGIN SET TO *, READ WHY YOU SHOULD CHANGE IT HERE " + + "https://developer.mozilla.org/it/docs/Web/HTTP/CORS") if self._enabled: _thread.start_new_thread(self._http_serve, ())