commit c6b473f2978dd8c679164de59950af4054b42116 Author: Damian Johnson atagar@torproject.org Date: Mon Sep 4 13:50:49 2017 -0700
Caching manual would error if schema was out of date
STATIC CHECKS * /tmp/stem/cache_manual.py line 51 - undefined name 'exc' | print('Cached database schema is out of date (was %s, but current version is %s)' % (exc.database_schema, stem.manual.SCHEMA_VERSION)) --- cache_manual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cache_manual.py b/cache_manual.py index 0d07fa5f..a3cd214b 100755 --- a/cache_manual.py +++ b/cache_manual.py @@ -48,7 +48,7 @@ if __name__ == '__main__': cached_manual, db_schema = None, None # local copy has been deleted
if db_schema != stem.manual.SCHEMA_VERSION: - print('Cached database schema is out of date (was %s, but current version is %s)' % (exc.database_schema, stem.manual.SCHEMA_VERSION)) + print('Cached database schema is out of date (was %s, but current version is %s)' % (db_schema, stem.manual.SCHEMA_VERSION)) cached_manual = None
latest_manual = stem.manual.Manual.from_remote()
tor-commits@lists.torproject.org