Skip to content

Commit

Permalink
Fix handling of None
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 committed Dec 17, 2024
1 parent 79e64e0 commit 3197322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lmfdb/local_fields/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,14 @@ def galcolresponse(n,t,cache):
return group_pretty_and_nTj(n, t, cache=cache)

def formatbracketcol(blist):
if blist is None:
return 'not computed'
if blist == []:
return r'$[\ ]$'
if not blist:
return 'not computed'
return f'${blist}$'

def intcol(j):
if not j:
if j is None:
return 'not computed'
return f'${j}$'

Expand Down

0 comments on commit 3197322

Please sign in to comment.