From c52c138dfd85e884b21a7ca77f0f1558a710f3ce Mon Sep 17 00:00:00 2001 From: sixt0o Date: Tue, 8 Feb 2022 19:10:36 -0700 Subject: [PATCH] added try catch around importing gpsd --- f0xtr0t.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/f0xtr0t.py b/f0xtr0t.py index 5eedfd0..dbf2b7b 100644 --- a/f0xtr0t.py +++ b/f0xtr0t.py @@ -7,7 +7,10 @@ from flask import Response from functools import lru_cache from dateutil.parser import parse -import gpsd +try: + import gpsd +except ImportError: + logging.info(f"[f0xtr0t] gpsd module not found") import socket import requests import subprocess @@ -39,14 +42,14 @@ def update_gps(self): class f0xtr0t(plugins.Plugin): __author__ = 'https://github.com/sixt0o' - __version__ = '1.4.1-alpha' + __version__ = '1.4.2-alpha' __name__ = 'f0xtr0t' __license__ = 'GPL3' __description__ = 'a plugin for pwnagotchi that shows a openstreetmap with positions of ap-handshakes in your webbrowser. Based on the origional webgpsmaps' ALREADY_SENT = list() SKIP = list() - CURRENT_VERSION = 'v1.4.1-alpha' + CURRENT_VERSION = 'v1.4.2-alpha' def __init__(self): self.ready = False