Skip to content

Commit

Permalink
Don't download geolite db in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed May 30, 2019
1 parent 815fe02 commit c63215c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/Sidebar/SidebarPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ def downloadGeoLiteDb(self, db_path):
import shutil
from util import helper

if config.offline:
return False

self.log.info("Downloading GeoLite2 City database...")
self.cmd("progress", ["geolite-info", _["Downloading GeoLite2 City database (one time only, ~20MB)..."], 0])
db_urls = [
Expand Down

0 comments on commit c63215c

Please sign in to comment.