Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
leostat committed Apr 1, 2017
1 parent f54896f commit 867df46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def err(msg, level="generic"):
sql = "SELECT hash,URL FROM TblUpdates"
cur.execute(sql)
dbsversion = cur.fetchall()
if dbsversion is None:
if not dbsversion:
print ANSI["yellow"] + ANSI["bold"] + "[WARNING]: " + ANSI["reset"] + "No DB, please run rtfm -u"
parser = optparse.OptionParser(\
usage="Usage: %prog [OPTIONS]",
Expand Down

0 comments on commit 867df46

Please sign in to comment.