Skip to content

Commit

Permalink
added try catch around importing gpsd
Browse files Browse the repository at this point in the history
  • Loading branch information
sixt0o committed Feb 9, 2022
1 parent 56a3627 commit c52c138
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions f0xtr0t.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c52c138

Please sign in to comment.